aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc/board.d
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-08-13 20:32:02 +0800
committerMathias Kresin <dev@kresin.me>2018-08-14 10:19:37 +0200
commit1213504750bf27b46fd958d236fcf56f33d2d8cd (patch)
tree6b682a3fbb8bdbb1b8dd4f86fcaa2ba57cf545c0 /target/linux/ath79/base-files/etc/board.d
parent8db6522531531348952b161fd4de46a7eca481d6 (diff)
downloadupstream-1213504750bf27b46fd958d236fcf56f33d2d8cd.tar.gz
upstream-1213504750bf27b46fd958d236fcf56f33d2d8cd.tar.bz2
upstream-1213504750bf27b46fd958d236fcf56f33d2d8cd.zip
ath79: add support for TP-Link TL-WR941N/ND v2/v3
Specification: - SoC: Atheros AR9132 - Flash: 4 MB - RAM: 32 MB - Ethernet: Marvell 88E6060 with 5 FE ports. Flash instruction: Upload the generated factory firmware on web interface. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files/etc/board.d')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network7
1 files changed, 7 insertions, 0 deletions
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 da98061d08..a29a295c56 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -133,6 +133,9 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
;;
+ tplink,tl-wr941-v2)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
+ ;;
ubnt,unifiac-mesh-pro|\
ubnt,unifiac-pro)
ucidef_add_switch "switch0" \
@@ -173,6 +176,10 @@ ath79_setup_macs()
base_mac=$(mtd_get_mac_binary product-info 8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
+ tplink,tl-wr941-v2)
+ base_mac=$(mtd_get_mac_binary u-boot 130048)
+ wan_mac=$(macaddr_add "$base_mac" 1)
+ ;;
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac