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_ppe_common.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_ppe_common.h')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ppe_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ppe_common.h b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ppe_common.h index 63a5a3741a..8b8e310aef 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ppe_common.h +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ppe_common.h @@ -306,6 +306,12 @@ #define DREG_B0_LADR PPE_REG_ADDR(0x0DA8) #define DREG_B1_LADR PPE_REG_ADDR(0x0DA9) +static inline int +ifx_drv_ver(char *buf, char *module, int major, int mid, int minor) +{ + return sprintf(buf, "Lantiq %s driver, version %d.%d.%d, (c) 2001-2013 Lantiq Deutschland GmbH\n", + module, major, mid, minor); +} #endif // IFXMIPS_PTM_PPE_COMMON_H |