ar71xx: disable JTAG on TL-WR841N-v8/MR3420v2
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 08:40:21 +0000 (08:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 08:40:21 +0000 (08:40 +0000)
It also fixes USB Power on MR3420v2.

Signed-off-by: Dmytro <dioptimizer@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37194

target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c

index fd1f54c0169740c6a6b5e6cebd92d28a88bb17b0..e376ae5a426714349aa870e5ba211c50cc6e2f1d 100644 (file)
@@ -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);