aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-11 21:12:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-11 21:12:04 +0000
commit290ed26dce0d99c86fdc1e1f000dbc2a287f2119 (patch)
tree319013831d932c8f8c995ccaa3aad428ad2b76d7 /target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
parenteec3255887fd91f7cac6388cf3a1715d7ae342ab (diff)
downloadmaster-187ad058-290ed26dce0d99c86fdc1e1f000dbc2a287f2119.tar.gz
master-187ad058-290ed26dce0d99c86fdc1e1f000dbc2a287f2119.tar.bz2
master-187ad058-290ed26dce0d99c86fdc1e1f000dbc2a287f2119.zip
ar71xx: on wnr2200, revert the mac0/mac1, the ethernet interfaces are swapped. use MAC1 for wlan
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47873 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
index 9f37f25e15..5d23f21763 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
@@ -42,8 +42,8 @@
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
#define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL)
-#define WNR2200_MAC0_OFFSET 6
-#define WNR2200_MAC1_OFFSET 0
+#define WNR2200_MAC0_OFFSET 0
+#define WNR2200_MAC1_OFFSET 6
#define WNR2200_PCIE_CALDATA_OFFSET 0x1000
static struct gpio_led wnr2200_leds_gpio[] __initdata = {
@@ -122,7 +122,7 @@ static void __init wnr2200_setup(void)
ath79_register_m25p80(NULL);
ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
- art + WNR2200_MAC0_OFFSET);
+ art + WNR2200_MAC1_OFFSET);
ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
wnr2200_leds_gpio);