aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files
diff options
context:
space:
mode:
authorLucian Cristian <lucian.cristian@gmail.com>2018-06-08 11:51:00 +0300
committerJohn Crispin <john@phrozen.org>2018-06-08 12:19:49 +0200
commitc8677ca89e53e3be7988d54280fce166cc894a7e (patch)
tree9acaaf920db38b001d84df155938264dd2a6d3b8 /target/linux/ath79/base-files
parent8c15fb5240871cbaf806384c3f521b0089645460 (diff)
downloadupstream-c8677ca89e53e3be7988d54280fce166cc894a7e.tar.gz
upstream-c8677ca89e53e3be7988d54280fce166cc894a7e.tar.bz2
upstream-c8677ca89e53e3be7988d54280fce166cc894a7e.zip
ath79: add tl-mr3020-v1 support
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network5
2 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index 80e32d9e00..0ba03b25a0 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -27,6 +27,9 @@ case "$board" in
"glinet,ar150")
ucidef_set_led_wlan "wlan" "WLAN" "gl-ar150:orange:wlan" "phy0tpt"
;;
+"tplink,tl-mr3020-v1")
+ ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x02"
+ ;;
"tplink,tl-wr740n-v2")
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x02"
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index a2d6ab0049..8e3c9177a2 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -26,7 +26,10 @@ ath79_setup_interfaces()
"glinet,ar150")
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
-
+ "tplink,tl-mr3020-v1")
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "switch0" "0@eth0" "1:lan"
+ ;;
"tplink,tl-wdr3600"|\
"tplink,tl-wdr4300")
ucidef_add_switch "switch0" \