ar71xx: GL.iNet AR300M family: correct LED definitions

remove USB as this is no LED but power control
rename WiFi LED with correct color red (like in stock firmware)
set middle LED to be used for LAN link/activity

Signed-off-by: Andreas Ziegler <dev@andreas-ziegler.de>
This commit is contained in:
Andreas Ziegler 2019-02-25 01:19:59 +01:00 committed by Hauke Mehrtens
parent ba249bc955
commit 53c46b504c
2 changed files with 2 additions and 8 deletions

View File

@ -412,6 +412,7 @@ fritz450e)
;; ;;
gl-ar300m) gl-ar300m)
ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt" ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
;; ;;
gl-ar750) gl-ar750)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt" ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt"

View File

@ -29,7 +29,6 @@
#include "machtypes.h" #include "machtypes.h"
#include "pci.h" #include "pci.h"
#define GL_AR300M_GPIO_LED_USB 2
#define GL_AR300M_GPIO_LED_WLAN 14 #define GL_AR300M_GPIO_LED_WLAN 14
#define GL_AR300M_GPIO_LED_LAN 13 #define GL_AR300M_GPIO_LED_LAN 13
#define GL_AR300M_GPIO_LED_SYSTEM 12 #define GL_AR300M_GPIO_LED_SYSTEM 12
@ -47,13 +46,7 @@
static struct gpio_led gl_ar300m_leds_gpio[] __initdata = { static struct gpio_led gl_ar300m_leds_gpio[] __initdata = {
{ {
.name = "gl-ar300m:green:usb", .name = "gl-ar300m:red:wlan",
.gpio = GL_AR300M_GPIO_LED_USB,
.active_low = 0,
.default_state = 1,
},
{
.name = "gl-ar300m:green:wlan",
.gpio = GL_AR300M_GPIO_LED_WLAN, .gpio = GL_AR300M_GPIO_LED_WLAN,
.active_low = 1, .active_low = 1,
}, },