diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-31 13:54:11 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-31 13:54:11 +0000 |
commit | 557009bbdb764544f06b1cb623c43f7555993e96 (patch) | |
tree | 868c62cb8b9bcb882fb75112dff79dfa135fe1cc /target/linux/ar71xx/files/arch | |
parent | 244c322d25005d414ab434a519f68b1a63d521a6 (diff) | |
download | mtk-20170518-557009bbdb764544f06b1cb623c43f7555993e96.zip mtk-20170518-557009bbdb764544f06b1cb623c43f7555993e96.tar.gz mtk-20170518-557009bbdb764544f06b1cb623c43f7555993e96.tar.bz2 |
ar71xx: fix LEDs on the WRT400N
SVN-Revision: 29624
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c index 8bd82b9..6d8d55f 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c @@ -21,10 +21,10 @@ #include "dev-gpio-buttons.h" #include "dev-leds-gpio.h" -#define WRT400N_GPIO_LED_ORANGE 5 -#define WRT400N_GPIO_LED_GREEN 4 -#define WRT400N_GPIO_LED_POWER 1 -#define WRT400N_GPIO_LED_WLAN 0 +#define WRT400N_GPIO_LED_POWER 1 +#define WRT400N_GPIO_LED_WPS_BLUE 4 +#define WRT400N_GPIO_LED_WPS_AMBER 5 +#define WRT400N_GPIO_LED_WLAN 6 #define WRT400N_GPIO_BTN_RESET 8 #define WRT400N_GPIO_BTN_WLSEC 3 @@ -93,21 +93,22 @@ static struct flash_platform_data wrt400n_flash_data = { static struct gpio_led wrt400n_leds_gpio[] __initdata = { { - .name = "wrt400n:green:status", - .gpio = WRT400N_GPIO_LED_GREEN, + .name = "wrt400n:blue:wps", + .gpio = WRT400N_GPIO_LED_WPS_BLUE, .active_low = 1, }, { - .name = "wrt400n:amber:aoss", - .gpio = WRT400N_GPIO_LED_ORANGE, + .name = "wrt400n:amber:wps", + .gpio = WRT400N_GPIO_LED_WPS_AMBER, .active_low = 1, }, { - .name = "wrt400n:green:wlan", + .name = "wrt400n:blue:wlan", .gpio = WRT400N_GPIO_LED_WLAN, .active_low = 1, }, { - .name = "wrt400n:green:power", + .name = "wrt400n:blue:power", .gpio = WRT400N_GPIO_LED_POWER, - .active_low = 1, + .active_low = 0, + .default_trigger = "default-on", } }; |