aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-01-05 16:01:17 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-01-05 16:01:17 +0100
commit1fef80f29cf6bdfcb6cdbd913b9147797b8bc218 (patch)
treea050829f38982ad570f0407444ffbd9668e1e4f0 /target/linux/ar71xx/base-files
parent2ee3e8dd42272f4109830cd26a7fd6f1231ddae8 (diff)
downloadupstream-1fef80f29cf6bdfcb6cdbd913b9147797b8bc218.tar.gz
upstream-1fef80f29cf6bdfcb6cdbd913b9147797b8bc218.tar.bz2
upstream-1fef80f29cf6bdfcb6cdbd913b9147797b8bc218.zip
ar71xx: add support for TP-Link WBS210/510
The devices are mostly identical to the CPE210/510, but use external antennas. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network4
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/03_gpio_switches4
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh8
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh4
5 files changed, 20 insertions, 4 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 c6dcf36fed..5a2bf0cfc4 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -152,7 +152,9 @@ cf-e530n)
ucidef_set_led_netdev "wan" "WAN" "$board:blue:wan" "eth1"
;;
cpe210|\
-cpe510)
+cpe510|\
+wbs210|\
+wbs510)
ucidef_set_led_switch "lan0" "LAN0" "tp-link:green:lan0" "switch0" "0x20"
ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
ucidef_set_rssimon "wlan0" "200000" "1"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 8acd214ced..66274db15f 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -212,7 +212,9 @@ ar71xx_setup_interfaces()
ucidef_set_interface_lan "eth0" "dhcp"
;;
cpe210|\
- cpe510)
+ cpe510|\
+ wbs210|\
+ wbs510)
ucidef_add_switch "switch0" \
"0@eth0" "5:lan" "4:wan"
;;
diff --git a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
index 5b95f155cf..da963bf64d 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
@@ -18,7 +18,9 @@ nanostation-m-xw)
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
;;
cpe210|\
-cpe510)
+cpe510|\
+wbs210|\
+wbs510)
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
;;
rb-912uag-2hpnd|\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 3241100198..1b30f4d827 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -510,6 +510,14 @@ ar71xx_board_detect() {
*CPE870)
name="cpe870"
;;
+ *WBS210)
+ name="wbs210"
+ tplink_pharos_board_detect
+ ;;
+ *WBS510)
+ name="wbs510"
+ tplink_pharos_board_detect
+ ;;
*CR3000)
name="cr3000"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 570aa686e3..6341a31791 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -453,7 +453,9 @@ platform_check_image() {
;;
cpe210|\
cpe510|\
- eap120)
+ eap120|\
+ wbs210|\
+ wbs510)
tplink_pharos_check_image "$1" && return 0
return 1
;;