layerscape: Add ls1028ardb support
[openwrt/openwrt.git] / target / linux / layerscape / base-files / etc / board.d / 02_network
1
2 . /lib/functions/system.sh
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 case "$(board_name)" in
8 fsl,ls1028a-rdb|\
9 fsl,ls1028a-rdb-sdboot)
10 ucidef_set_interfaces_lan_wan "swp0 swp1 swp2 swp3" "eth0"
11 ;;
12 traverse,ls1043v)
13 ucidef_set_interface_lan "eth0 eth1 eth2 eth3"
14 ucidef_set_interface_wan "eth4"
15 ;;
16 traverse,ls1043s)
17 ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth6"
18 ucidef_set_interface_wan "eth4"
19 ;;
20 esac
21
22 board_config_flush
23
24 exit 0