aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-14 17:43:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-14 17:43:50 +0000
commitc5339698b04195b26769f30de401dd7fe7dae96d (patch)
tree2ce9e7227fbb4b4029f8657d4b1ef270041a707b /target/linux/generic/files/include
parente6052213256e84f49049708e9ec639950283819e (diff)
downloadupstream-c5339698b04195b26769f30de401dd7fe7dae96d.tar.gz
upstream-c5339698b04195b26769f30de401dd7fe7dae96d.tar.bz2
upstream-c5339698b04195b26769f30de401dd7fe7dae96d.zip
ar8216: Fix problem with AR8337 MAC swap handling
AR8337 supports a configuration bit to swap MAC0 and MAC6. Currently this is set in general if an AR8337 is detected and causes issues with devices using an AR8334 (internally an AR8337, just less chip pins). And it might even cause issues with AR8337-based devices with different board designs. Swapping the MAC's however isn't needed for AR8337 in general. It's just needed in case of certain board designs (affected devices seem to be based on Atheros reference board AP135/136-010). Therefore this configuration bit should be moved to platform data. The patch includes the needed changes to the device initialization code of affected devices. Hopefully I didn't miss any .. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45970 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/ar8216_platform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/generic/files/include/linux/ar8216_platform.h b/target/linux/generic/files/include/linux/ar8216_platform.h
index 4935ad332c..d70f11a843 100644
--- a/target/linux/generic/files/include/linux/ar8216_platform.h
+++ b/target/linux/generic/files/include/linux/ar8216_platform.h
@@ -47,6 +47,7 @@ struct ar8327_pad_cfg {
bool sgmii_delay_en;
enum ar8327_clk_delay_sel txclk_delay_sel;
enum ar8327_clk_delay_sel rxclk_delay_sel;
+ bool mac06_exchange_en;
};
enum ar8327_port_speed {
@@ -128,4 +129,5 @@ struct ar8327_platform_data {
const struct ar8327_led_info *leds;
};
-#endif /* AR8216_PLATFORM_H */ \ No newline at end of file
+#endif /* AR8216_PLATFORM_H */
+