diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-04 17:30:50 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-04 17:30:50 +0000 |
commit | 9229d15c65c875d849faf7697c17b3c6ca32aa59 (patch) | |
tree | e1da8d240b313f7355e8d80c0bc94f6f30721346 /target/linux/ar71xx/files/arch/mips | |
parent | 28c6546050d344bb29d35df7da68b939edeeac18 (diff) |
ar71xx: allow to use LAN LED on the TL-WA901N/ND boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c index 7bc666a9f..056f35ab7 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c @@ -20,6 +20,7 @@ #define TL_WA901ND_GPIO_LED_QSS 0 #define TL_WA901ND_GPIO_LED_SYSTEM 1 +#define TL_WA901ND_GPIO_LED_LAN 13 #define TL_WA901ND_GPIO_BTN_RESET 11 #define TL_WA901ND_GPIO_BTN_QSS 12 @@ -38,6 +39,10 @@ static struct flash_platform_data tl_wa901nd_flash_data = { static struct gpio_led tl_wa901nd_leds_gpio[] __initdata = { { + .name = "tp-link:green:lan", + .gpio = TL_WA901ND_GPIO_LED_LAN, + .active_low = 1, + }, { .name = "tp-link:green:system", .gpio = TL_WA901ND_GPIO_LED_SYSTEM, .active_low = 1, @@ -71,6 +76,12 @@ static void __init tl_wa901nd_setup(void) u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); + ar71xx_gpio_function_disable(AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN | + AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN | + AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN | + AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN | + AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN); + /* * ar71xx_eth0 would be the WAN port, but is not connected on * the TL-WA901ND. ar71xx_eth1 connects to the internal switch chip, |