2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Hauke Mehrtens
2016-07-27 21:27:54 +02:00
parent 6b5a418512
commit 47cce1d5e4
4 changed files with 27 additions and 24 deletions

View File

@@ -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'
;;