From 38646938a458d0d9eda7ea3d14e182892470efe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= Date: Sun, 3 Jan 2021 17:09:39 +0200 Subject: ltq-ptm: Update VR9 PTM firmware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä --- .../kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_fw_regs_vdsl.h') 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; -- cgit v1.2.3