ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Mar 2016 09:45:10 +0000 (09:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Mar 2016 09:45:10 +0000 (09:45 +0000)
This patch add speed_mask parameter to Ethernet port LED initialization
during system startup. LEDs are configured to show amber light for 10 Mbps
link and green for 100 Mbps as described on device label.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
SVN-Revision: 48923

target/linux/ar71xx/base-files/etc/board.d/01_leds

index 737442221d5a2bda324ad28a4fa46d9b0556536b..37ee3d32a7ee4f0f405b41b2b1f8d70a9c769c1b 100755 (executable)
@@ -680,14 +680,14 @@ wnr2000-v3)
        ucidef_set_led_netdev "wan-amber" "WAN (amber)" "netgear:amber:wan" "eth0"
        ucidef_set_led_default "wan-green" "WAN (green)" "netgear:green:wan" "0"
        ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0"
-       ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02"
-       ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04"
-       ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08"
-       ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10"
-       ucidef_set_led_default "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "0"
-       ucidef_set_led_default "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "0"
-       ucidef_set_led_default "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "0"
-       ucidef_set_led_default "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "0"
+       ucidef_set_led_switch "lan1green" "LAN1 (green)" "netgear:green:lan1" "switch0" "0x02" "0x04"
+       ucidef_set_led_switch "lan2green" "LAN2 (green)" "netgear:green:lan2" "switch0" "0x04" "0x04"
+       ucidef_set_led_switch "lan3green" "LAN3 (green)" "netgear:green:lan3" "switch0" "0x08" "0x04"
+       ucidef_set_led_switch "lan4green" "LAN4 (green)" "netgear:green:lan4" "switch0" "0x10" "0x04"
+       ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "netgear:amber:lan1" "switch0" "0x02" "0x02"
+       ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "netgear:amber:lan2" "switch0" "0x04" "0x02"
+       ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "netgear:amber:lan3" "switch0" "0x08" "0x02"
+       ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "netgear:amber:lan4" "switch0" "0x10" "0x02"
        ;;
 
 wnr2000-v4)