summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-15 14:35:48 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-15 14:35:48 +0000
commit5bd2cf3c07c4b9c6c18249724f2c191299819c74 (patch)
treecf409eff2ed49399c850a26a99eeb6072aa040aa /target/linux/ar71xx/files/arch
parent68ab66f3f00b188f0ff8ad1f7559bdd4b1a51094 (diff)
ar71xx: Error fix in Kernel for MR3420v2 Ethernet Switch configuration
Error in using another MDIO (AP123 platform using only one GE1 device for eth0 and eth1) for the router mr3420v2. ?onfirmed: https://forum.openwrt.org/viewtopic.php?pid=194779#p194779 Routers in this sense are the same and the only difference is: USB port, USB led, instead of the GPIO-switch we have GPIO-button. Signed-off-by: Dmytro <dioptimizer@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36036 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
index 976c7ee26..fd1f54c01 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
@@ -136,6 +136,8 @@ static void __init tl_ap123_setup(void)
ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);
+ ath79_register_mdio(1, 0x0);
+
ath79_init_mac(ath79_eth0_data.mac_addr, mac, -1);
ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0);
@@ -164,8 +166,6 @@ static void __init tl_wr841n_v8_setup(void)
ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
tl_wr841n_v8_gpio_keys);
-
- ath79_register_mdio(1, 0x0);
}
MIPS_MACHINE(ATH79_MACH_TL_WR841N_V8, "TL-WR841N-v8", "TP-LINK TL-WR841N/ND v8",
@@ -182,8 +182,6 @@ static void __init tl_mr3420v2_setup(void)
ARRAY_SIZE(tl_mr3420v2_gpio_keys),
tl_mr3420v2_gpio_keys);
- ath79_register_mdio(0, 0x0);
-
/* enable power for the USB port */
gpio_request_one(TL_MR3420V2_GPIO_USB_POWER,
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,