Browse Source

ar71xx/sysmocom: migrate led red:eth0 to red:system

Before the red:wlan led was used as system led while booting.
master
Alexander Couzens 6 years ago
parent
commit
68ce59ad6f
  1. 6
      target/linux/ar71xx/base-files/etc/diag.sh
  2. 1
      target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
  3. 4
      target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c

6
target/linux/ar71xx/base-files/etc/diag.sh

@ -283,10 +283,12 @@ get_status_led() {
sysmocom-sob-ap1)
status_led="sysmocom:orange:wlan"
;;
sysmocom-sob-ap2 | \
sysmocom-sob-ap2)
status_led="sysmocom:red:wlan"
;;
sysmocom-sob-jb02 | \
sysmocom-sob-jb02v3)
status_led="sysmocom:red:wlan"
status_led="sysmocom:red:system"
;;
esac
}

1
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds

@ -214,7 +214,6 @@ sysmocom-sob-ap1)
sysmocom-sob-jb02 | \
sysmocom-sob-jb02v3)
ucidef_set_led_netdev "lan" "LAN" "sysmocom:red:eth0" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:red:wlan" "phy0tpt"
ucidef_set_led_default "wlan" "sysmocom:red:wlan" "1"
;;

4
target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c

@ -82,7 +82,7 @@ static struct gpio_led sysmocom_sob_jb02_leds_gpio[] __initdata = {
.gpio = SYSMOCOM_GPIO_LED_WLAN,
.active_low = 0,
}, {
.name = "sysmocom:red:eth0",
.name = "sysmocom:red:system",
.gpio = SYSMOCOM_GPIO_LED_ETH0,
.active_low = 0,
}
@ -94,7 +94,7 @@ static struct gpio_led sysmocom_sob_jb02v3_leds_gpio[] __initdata = {
.gpio = SYSMOCOM_SOB_JB02V3_GPIO_LED_WLAN,
.active_low = 0,
}, {
.name = "sysmocom:red:eth0",
.name = "sysmocom:red:system",
.gpio = SYSMOCOM_SOB_JB02V3_GPIO_LED_ETH0,
.active_low = 0,
}

Loading…
Cancel
Save