Changeset 37878


Ignore:
Timestamp:
2013-09-02T18:09:12+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: configure OBS4 line on TL-WR841N-v8/MR3420v2

It also fixes USB Power on MR3420v2.

This time we took the information from the source of GPL:
http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg18970.html
Confirmed and tested:
https://dev.openwrt.org/ticket/13201#comment:41
Thanks to oguretsagressive for testing.

Signed-off-by: Dmytro <dioptimizer@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c

    r37194 r37878  
    133133        u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); 
    134134 
    135         /* Disable JTAG, enabling GPIOs 0-4 */ 
    136         ath79_gpio_function_enable(AR934X_GPIO_FUNC_JTAG_DISABLE); 
     135        /* Disable JTAG, enabling GPIOs 0-3 */ 
     136        /* Configure OBS4 line, for GPIO 4*/ 
     137        ath79_gpio_function_setup(AR934X_GPIO_FUNC_JTAG_DISABLE, 
     138                                 AR934X_GPIO_FUNC_CLK_OBS4_EN); 
     139 
     140        /* config gpio4 as normal gpio function */ 
     141        ath79_gpio_output_select(TL_MR3420V2_GPIO_USB_POWER, 
     142                                 AR934X_GPIO_OUT_GPIO); 
    137143 
    138144        ath79_register_m25p80(&tl_wr841n_v8_flash_data); 
Note: See TracChangeset for help on using the changeset viewer.