aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-07-27 21:27:54 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2016-07-28 22:42:16 +0200
commit47cce1d5e45c1e6c5bb5659698408d4cea4e03a4 (patch)
treebd87f3917877bd6c381dfa4fb45d29f825ee3110 /target/linux/lantiq/base-files/etc
parent6b5a4185122b8c9edfb16e0ac70802733191ffe7 (diff)
downloadupstream-47cce1d5e45c1e6c5bb5659698408d4cea4e03a4.tar.gz
upstream-47cce1d5e45c1e6c5bb5659698408d4cea4e03a4.tar.bz2
upstream-47cce1d5e45c1e6c5bb5659698408d4cea4e03a4.zip
lantiq: fix switch configuration for EASY80920
The device tree description misses some Ethernet ports and there was no model specified for this board. In addition there was no switch specific default configuration created. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/lantiq/base-files/etc')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index d6f66016f6..989dbf32a6 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -157,6 +157,13 @@ WBMR300)
"2:lan:2" "3:lan:3" "5:lan:4" "4:wan:1" "6t@eth0"
;;
+EASY80920NAND|EASY80920NOR)
+ lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
+ ucidef_add_switch "switch0" \
+ "4:lan:1" "2:lan:2" "1:lan:3" "0:lan:3" "5:wan:1" "6t@eth0"
+ ;;
+
*)
ucidef_set_interface_lan 'eth0'
;;