summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-19 08:50:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-19 08:50:41 +0000
commitb1b7aa674ebf98c2d3af25cae43168fc6d00614b (patch)
tree06faa2e3cdf51a1b8d902b96322fd70e167cf202 /target/linux/ar71xx
parent0767605d178913dda61fcb4b917a0b22ee405631 (diff)
downloadmtk-20170518-b1b7aa674ebf98c2d3af25cae43168fc6d00614b.zip
mtk-20170518-b1b7aa674ebf98c2d3af25cae43168fc6d00614b.tar.gz
mtk-20170518-b1b7aa674ebf98c2d3af25cae43168fc6d00614b.tar.bz2
ar71xx: add user-space support for the TL-MR3220 v2
Based on the following patch: http://patchwork.openwrt.org/patch/3043/ [juhosg: add uci-defaults/network support] Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34780
Diffstat (limited to 'target/linux/ar71xx')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/leds10
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 001e9c5..0b6e8f8 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -126,6 +126,7 @@ get_status_led() {
status_led="tp-link:green:wps"
;;
tl-mr3220 | \
+ tl-mr3220-v2 | \
tl-mr3420 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
index 0594398..3dd5d21 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
@@ -118,6 +118,16 @@ tl-mr3420 )
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
+tl-mr3220-v2)
+ ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+ ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+ ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+ ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+ ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+ ;;
+
tl-wa901nd)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network
index f060f2e..7832da5 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network
@@ -200,6 +200,7 @@ rb-751 |\
tew-632brp |\
tew-712br |\
tl-mr3220 |\
+tl-mr3220-v2 |\
tl-mr3420 |\
tl-wr741nd |\
tl-wr741nd-v4 |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 45fe675..7327166 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -345,6 +345,9 @@ ar71xx_board_detect() {
*TL-MR3220)
name="tl-mr3220"
;;
+ *"TL-MR3220 v2")
+ name="tl-mr3220-v2"
+ ;;
*TL-MR3420)
name="tl-mr3420"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index e032868..3d9e024 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -151,6 +151,7 @@ platform_check_image() {
tl-mr3020 | \
tl-mr3040 | \
tl-mr3220 | \
+ tl-mr3220-v2 | \
tl-mr3420 | \
tl-wa7510n | \
tl-wa901nd | \