ar71xx: fix LEDs on the WRT400N
SVN-Revision: 29624
This commit is contained in:
parent
244c322d25
commit
557009bbdb
2 changed files with 13 additions and 12 deletions
|
@ -127,7 +127,7 @@ get_status_led() {
|
||||||
status_led="wp543:green:diag"
|
status_led="wp543:green:diag"
|
||||||
;;
|
;;
|
||||||
wrt400n)
|
wrt400n)
|
||||||
status_led="wrt400n:green:status"
|
status_led="wrt400n:blue:wps"
|
||||||
;;
|
;;
|
||||||
wrt160nl)
|
wrt160nl)
|
||||||
status_led="wrt160nl:blue:wps"
|
status_led="wrt160nl:blue:wps"
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
#include "dev-gpio-buttons.h"
|
#include "dev-gpio-buttons.h"
|
||||||
#include "dev-leds-gpio.h"
|
#include "dev-leds-gpio.h"
|
||||||
|
|
||||||
#define WRT400N_GPIO_LED_ORANGE 5
|
#define WRT400N_GPIO_LED_POWER 1
|
||||||
#define WRT400N_GPIO_LED_GREEN 4
|
#define WRT400N_GPIO_LED_WPS_BLUE 4
|
||||||
#define WRT400N_GPIO_LED_POWER 1
|
#define WRT400N_GPIO_LED_WPS_AMBER 5
|
||||||
#define WRT400N_GPIO_LED_WLAN 0
|
#define WRT400N_GPIO_LED_WLAN 6
|
||||||
|
|
||||||
#define WRT400N_GPIO_BTN_RESET 8
|
#define WRT400N_GPIO_BTN_RESET 8
|
||||||
#define WRT400N_GPIO_BTN_WLSEC 3
|
#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 = {
|
static struct gpio_led wrt400n_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "wrt400n:green:status",
|
.name = "wrt400n:blue:wps",
|
||||||
.gpio = WRT400N_GPIO_LED_GREEN,
|
.gpio = WRT400N_GPIO_LED_WPS_BLUE,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "wrt400n:amber:aoss",
|
.name = "wrt400n:amber:wps",
|
||||||
.gpio = WRT400N_GPIO_LED_ORANGE,
|
.gpio = WRT400N_GPIO_LED_WPS_AMBER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "wrt400n:green:wlan",
|
.name = "wrt400n:blue:wlan",
|
||||||
.gpio = WRT400N_GPIO_LED_WLAN,
|
.gpio = WRT400N_GPIO_LED_WLAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "wrt400n:green:power",
|
.name = "wrt400n:blue:power",
|
||||||
.gpio = WRT400N_GPIO_LED_POWER,
|
.gpio = WRT400N_GPIO_LED_POWER,
|
||||||
.active_low = 1,
|
.active_low = 0,
|
||||||
|
.default_trigger = "default-on",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue