[OpenWrt-Devel] [RFC v2 1/6] ar71xx: Save in ag71xx_platform_data if SoC is qca955x
Sven Eckelmann
sven.eckelmann at open-mesh.com
Tue Apr 5 09:32:08 EDT 2016
From: Sven Eckelmann <sven.eckelmann at open-mesh.com>
The ag71xx driver must know if a device is QCA955x to enable some special
workarounds for this SoC family. Similar information are already stored in
ag71xx_platform_data and ag71xx_mdio_platform_data to adjust the behavior
of the driver.
Signed-off-by: Sven Eckelmann <sven.eckelmann at open-mesh.com>
---
v2:
- Split into multiple patches and adjust slightly to look more like an
OpenWrt patch
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 1 +
.../ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index b43c80a..09201c9 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -1100,6 +1100,7 @@ void __init ath79_register_eth(unsigned int id)
pdata->ddr_flush = ath79_ddr_no_flush;
pdata->has_gbit = 1;
pdata->is_ar724x = 1;
+ pdata->is_qca955x = 1;
/*
* Limit the maximum frame length to 4095 bytes.
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h
index d46dc4e..4db2c65 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h
@@ -36,6 +36,7 @@ struct ag71xx_platform_data {
u8 is_ar7240:1;
u8 is_ar724x:1;
u8 has_ar8216:1;
+ u8 is_qca955x:1;
struct ag71xx_switch_platform_data *switch_data;
--
2.8.0.rc3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list