aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-11-26 12:34:48 +0100
committerMathias Kresin <dev@kresin.me>2018-11-26 15:54:22 +0100
commit8ec1a66c34d85bdd13754e4171333a763aaf0a00 (patch)
tree2a33da3086bcb5c086af201bb7adec64a2cd92fc /target/linux/ramips/base-files
parent533f7673ae08a71269cd1f7728f8e8e1983bbd9c (diff)
downloadupstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.tar.gz
upstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.tar.bz2
upstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.zip
ramips: improve Skylab SKW92A support
Use the generic board detection instead of the target specific one as all recent additions are doing. Add the wireless led according the gpio number from the datasheet. Rename the board part of the leds to match the name used for the compatible string. Finally, do not hijack the wps led for boot status indication longer than necessary. Merge userspace config into existing cases. Include the manufacture Name in the dts model string. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network7
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh2
4 files changed, 4 insertions, 12 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 2f83f221f1..6d4bca8029 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -17,6 +17,7 @@ case $board in
set_wifi_led "$boardname:amber:wlan"
;;
3g-6200nl|\
+skylab,skw92a|\
wnce2001)
set_wifi_led "$boardname:green:wlan"
;;
@@ -287,9 +288,6 @@ rt-n14u)
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
set_wifi_led "$boardname:blue:air"
;;
-skw92a)
- set_wifi_led "$boardname:green:wlan"
- ;;
tama,w06)
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 862eae1d4a..12d7c86e2b 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -219,6 +219,7 @@ ramips_setup_interfaces()
tl-wr840n-v4|\
tl-wr840n-v5|\
tl-wr841n-v13|\
+ skylab,skw92a|\
u7628-01-128M-16M|\
ubnt-erx|\
ubnt-erx-sfp|\
@@ -345,10 +346,6 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
;;
- skw92a)
- ucidef_add_switch "switch0" \
- "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
- ;;
tew-638apb-v2)
ucidef_add_switch "switch0" \
"4:lan" "6@eth0"
@@ -561,7 +558,7 @@ ramips_setup_macs()
lan_mac=$(macaddr_setbit_la "$lan_mac")
wan_mac=$(mtd_get_mac_binary factory 32772)
;;
- skw92a)
+ skylab,skw92a)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 28d5073525..ba6a13b65b 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -472,9 +472,6 @@ ramips_board_detect() {
*"SAP-G3200U3")
name="sap-g3200u3"
;;
- *"SKW92A")
- name="skw92a"
- ;;
*"SL-R7205"*)
name="sl-r7205"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index ecc4650f68..cb6e5c1b5a 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -151,7 +151,7 @@ platform_check_image() {
rut5xx|\
sap-g3200u3|\
sk-wb8|\
- skw92a|\
+ skylab,skw92a|\
sl-r7205|\
tama,w06|\
tew-638apb-v2|\