ar71xx: set status led for the gl-* boards

Signed-off-by: Wojciech Jowsa <w.jowsa@radytek.com>
This commit is contained in:
Wojciech Jowsa 2017-02-15 12:38:07 +01:00 committed by John Crispin
parent 787cb58574
commit f223c4a923
4 changed files with 122 additions and 121 deletions

View file

@ -312,19 +312,18 @@ dlan-pro-1200-ac)
ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0" ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0" ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
;; ;;
gl-ar150|\ gl-ar300m)
gl-ar300|\ ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
gl-ar300m|\
gl-mifi)
ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
case "$board" in
gl-mifi)
ucidef_set_led_netdev "wan" "WAN" "$board:wan" "eth0"
ucidef_set_led_netdev "lan" "LAN" "$board:lan" "eth1"
ucidef_set_led_netdev "3gnet" "3GNET" "$board:net" "3g-wan"
;; ;;
esac gl-mifi)
ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
;;
gl-ar150|\
gl-ar300)
ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
;; ;;
gl-domino|\ gl-domino|\
sc300m|\ sc300m|\

View file

@ -61,7 +61,9 @@ get_status_led() {
ap90q|\ ap90q|\
cpe830|\ cpe830|\
cpe870|\ cpe870|\
gl-inet) gl-inet|\
gl-mifi|\
gl-ar300m)
status_led="$board:green:lan" status_led="$board:green:lan"
;; ;;
ap96) ap96)

View file

@ -47,23 +47,23 @@
static struct gpio_led gl_ar300m_leds_gpio[] __initdata = { static struct gpio_led gl_ar300m_leds_gpio[] __initdata = {
{ {
.name = "gl-ar300m:usb", .name = "gl-ar300m:green:usb",
.gpio = GL_AR300M_GPIO_LED_USB, .gpio = GL_AR300M_GPIO_LED_USB,
.active_low = 0, .active_low = 0,
.default_state = 1, .default_state = 1,
}, },
{ {
.name = "gl-ar300m:wlan", .name = "gl-ar300m:green:wlan",
.gpio = GL_AR300M_GPIO_LED_WLAN, .gpio = GL_AR300M_GPIO_LED_WLAN,
.active_low = 1, .active_low = 1,
}, },
{ {
.name = "gl-ar300m:lan", .name = "gl-ar300m::green:lan",
.gpio = GL_AR300M_GPIO_LED_LAN, .gpio = GL_AR300M_GPIO_LED_LAN,
.active_low = 1, .active_low = 1,
}, },
{ {
.name = "gl-ar300m:system", .name = "gl-ar300m:green:system",
.gpio = GL_AR300M_GPIO_LED_SYSTEM, .gpio = GL_AR300M_GPIO_LED_SYSTEM,
.active_low = 1, .active_low = 1,
.default_state = 1, .default_state = 1,

View file

@ -41,27 +41,27 @@
static struct gpio_led gl_mifi_leds_gpio[] __initdata = { static struct gpio_led gl_mifi_leds_gpio[] __initdata = {
{ {
.name = "gl-mifi:wan", .name = "gl-mifi:greeen:wan",
.gpio = GL_MIFI_GPIO_LED_WAN, .gpio = GL_MIFI_GPIO_LED_WAN,
.active_low = 0, .active_low = 0,
}, },
{ {
.name = "gl-mifi:lan", .name = "gl-mifi:green:lan",
.gpio = GL_MIFI_GPIO_LED_LAN, .gpio = GL_MIFI_GPIO_LED_LAN,
.active_low = 0, .active_low = 0,
}, },
{ {
.name = "gl-mifi:wlan", .name = "gl-mifi:green:wlan",
.gpio = GL_MIFI_GPIO_LED_WLAN, .gpio = GL_MIFI_GPIO_LED_WLAN,
.active_low = 0, .active_low = 0,
}, },
{ {
.name = "gl-mifi:net", .name = "gl-mifi:green:net",
.gpio = GL_MIFI_GPIO_LED_NET, .gpio = GL_MIFI_GPIO_LED_NET,
.active_low = 0, .active_low = 0,
}, },
{ {
.name = "gl-mifi:3gcontrol", .name = "gl-mifi:green:3gcontrol",
.gpio = GL_MIFI_GPIO_LED_3GCONTROL, .gpio = GL_MIFI_GPIO_LED_3GCONTROL,
.active_low = 0, .active_low = 0,
} }