aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRinki Kumari <rinki13@gmail.com>2018-09-27 21:40:15 +0530
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-17 16:31:55 +0100
commit0d549271d397b963be4ca26406688bc5dccaf123 (patch)
treedf27b5b3f852277e5fb0702c6d2d1d56a3a6bee8 /target
parentdd6d554b2c1e10aa11c5bd8d8d5b0f7f69ad3f20 (diff)
downloadupstream-0d549271d397b963be4ca26406688bc5dccaf123.tar.gz
upstream-0d549271d397b963be4ca26406688bc5dccaf123.tar.bz2
upstream-0d549271d397b963be4ca26406688bc5dccaf123.zip
ar71xx: fix TP-Link Archer C7 v5 switch LEDs
Signed-off-by: Rinki Kumari <rinki13@gmail.com>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds18
1 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 858d675008..592133ac28 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -142,7 +142,8 @@ archer-c60-v2)
;;
esac
;;
-archer-c7-v4)
+archer-c7-v4|\
+archer-c7-v5)
ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
@@ -150,8 +151,19 @@ archer-c7-v4)
ucidef_set_led_switch "lan2" "LAN2" "$board:green:lan3" "switch0" "0x08"
ucidef_set_led_switch "lan3" "LAN3" "$board:green:lan2" "switch0" "0x10"
ucidef_set_led_switch "lan4" "LAN4" "$board:green:lan1" "switch0" "0x20"
- ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
- ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
+
+ case "$board" in
+ archer-c7-v4)
+ ucidef_set_led_usbdev "usb1" "USB1" "$board:green:usb1" "1-1"
+ ucidef_set_led_usbdev "usb2" "USB2" "$board:green:usb2" "2-1"
+ ;;
+ esac
+
+ case "$board" in
+ archer-c7-v5)
+ ucidef_set_led_usbdev "usb" "USB" "$board:green:usb" "1-1"
+ ;;
+ esac
;;
arduino-yun)
ucidef_set_led_wlan "wlan" "WLAN" "arduino:blue:wlan" "phy0tpt"