diff options
author | Antti Seppälä <a.seppala@gmail.com> | 2021-01-03 17:09:39 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-02-12 05:07:04 +0000 |
commit | 38646938a458d0d9eda7ea3d14e182892470efe8 (patch) | |
tree | 01dc9740e7fb62834f046772872be7dffd662f79 /package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h | |
parent | 6934d30cf8d95bc8652b4dcd8180d14e5e8e2417 (diff) | |
download | upstream-38646938a458d0d9eda7ea3d14e182892470efe8.tar.gz upstream-38646938a458d0d9eda7ea3d14e182892470efe8.tar.bz2 upstream-38646938a458d0d9eda7ea3d14e182892470efe8.zip |
ltq-ptm: Update VR9 PTM firmware
After looking at various vendor GPL source code dumps I discovered that some
of them contain updated versions of ltq-ptm driver when compared to what
openwrt has.
The driver update is mostly cursory (simple changes to comments, whitespace,
formatting etc.) or adds debug features not used by openwrt.
However the updated driver also contains a later version of PTM firmware which
is extracted and included in this commit along with bits to correctly identify
its version when driver loads.
Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Diffstat (limited to 'package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h index e3571976a5..b965378350 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h @@ -79,7 +79,18 @@ struct wan_tx_mib_table { #if defined(__BIG_ENDIAN) - struct fw_ver_id { + struct fw_ver_id_new { // @2000 + /* 0 - 3h */ + unsigned int family :4; + unsigned int package :4; + unsigned int major :8; + unsigned int middle :8; + unsigned int minor :8; + /* 4 - 7h */ + unsigned int features :32; + }; + + struct fw_ver_id { // @2001 unsigned int family :4; unsigned int fwtype :4; unsigned int interface :4; |