aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-07-08 08:40:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-07-08 08:40:21 +0000
commita40f5f2d244fe3aa482e7163eaffbcf931d5a134 (patch)
tree9d8bc54766a2a8025b150f90b1d12eec755e2f2d /target/linux
parent90421e83a5c5cf93983152280e92263595df36be (diff)
downloadupstream-a40f5f2d244fe3aa482e7163eaffbcf931d5a134.tar.gz
upstream-a40f5f2d244fe3aa482e7163eaffbcf931d5a134.tar.bz2
upstream-a40f5f2d244fe3aa482e7163eaffbcf931d5a134.zip
ar71xx: disable JTAG on TL-WR841N-v8/MR3420v2
It also fixes USB Power on MR3420v2. Signed-off-by: Dmytro <dioptimizer@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37194 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c3
1 files changed, 3 insertions, 0 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 fd1f54c016..e376ae5a42 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
@@ -132,6 +132,9 @@ static void __init tl_ap123_setup(void)
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
+ /* Disable JTAG, enabling GPIOs 0-4 */
+ ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE);
+
ath79_register_m25p80(&tl_wr841n_v8_flash_data);
ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_SW_PHY_SWAP);