diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-03-25 06:40:03 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-03-25 06:40:03 +0000 |
commit | 9dcc5a385bf9075206dfdb68d44d788540737fe5 (patch) | |
tree | 91c2abd2ce5e77ca3a073040e7034124c66cf10f /target/linux/ar71xx/files/arch/mips | |
parent | a7b9cbd46878da0c9a74c800c04e8bba607d7410 (diff) | |
download | master-187ad058-9dcc5a385bf9075206dfdb68d44d788540737fe5.tar.gz master-187ad058-9dcc5a385bf9075206dfdb68d44d788540737fe5.tar.bz2 master-187ad058-9dcc5a385bf9075206dfdb68d44d788540737fe5.zip |
ar71xx: fix ethernet LEDs on the TL-WDR3500
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36122 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c index 5020ba4a39..452c20b777 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c @@ -33,6 +33,11 @@ #define WDR3500_GPIO_LED_WLAN2G 13 #define WDR3500_GPIO_LED_SYSTEM 14 #define WDR3500_GPIO_LED_QSS 15 +#define WDR3500_GPIO_LED_WAN 18 +#define WDR3500_GPIO_LED_LAN1 19 +#define WDR3500_GPIO_LED_LAN2 20 +#define WDR3500_GPIO_LED_LAN3 21 +#define WDR3500_GPIO_LED_LAN4 22 #define WDR3500_GPIO_BTN_WPS 16 #define WDR3500_GPIO_BTN_RFKILL 17 @@ -146,6 +151,17 @@ static void __init wdr3500_setup(void) GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "USB power"); ath79_register_usb(); + + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN1, + AR934X_GPIO_OUT_LED_LINK3); + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN2, + AR934X_GPIO_OUT_LED_LINK2); + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN3, + AR934X_GPIO_OUT_LED_LINK1); + ath79_gpio_output_select(WDR3500_GPIO_LED_LAN4, + AR934X_GPIO_OUT_LED_LINK0); + ath79_gpio_output_select(WDR3500_GPIO_LED_WAN, + AR934X_GPIO_OUT_LED_LINK4); } MIPS_MACHINE(ATH79_MACH_TL_WDR3500, "TL-WDR3500", |