From 47cce1d5e45c1e6c5bb5659698408d4cea4e03a4 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 27 Jul 2016 21:27:54 +0200 Subject: 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 --- target/linux/lantiq/base-files/etc/board.d/02_network | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target/linux/lantiq/base-files') 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 d6f6601..989dbf3 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' ;; -- cgit v1.1