mvebu: add support for SolidRun ClearFog Pro
[openwrt/openwrt.git] / target / linux / mvebu / cortexa72 / base-files / etc / board.d / 02_network
1 #
2 # Copyright (C) 2014-2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE-Project.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 globalscale,mochabin)
14 ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "eth0 eth2"
15 ;;
16 iei,puzzle-m901)
17 ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
18 ;;
19 iei,puzzle-m902)
20 ucidef_set_interfaces_lan_wan "eth0 eth1 eth3 eth4 eth5 eth6 eth7 eth8" "eth2"
21 ;;
22 marvell,armada8040-mcbin-doubleshot|\
23 marvell,armada8040-mcbin-singleshot)
24 ucidef_set_interfaces_lan_wan "eth0 eth1 eth3" "eth2"
25 ;;
26 marvell,armada8040-db)
27 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
28 ;;
29 marvell,armada7040-db)
30 ucidef_set_interfaces_lan_wan "eth0 eth2" "eth1"
31 ;;
32 marvell,armada8040-clearfog-gt-8k)
33 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 eth2" "eth0 eth1"
34 ;;
35 solidrun,clearfog-pro)
36 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 eth0 eth1" "eth2"
37 ;;
38 *)
39 ucidef_set_interface_lan "eth0"
40 ;;
41 esac
42
43 board_config_flush
44
45 exit 0