starfive: add new target for StarFive JH7100/7110 SoC
[openwrt/staging/981213.git] / target / linux / starfive / base-files / etc / board.d / 02_network
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2022 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 starfive,visionfive-2-v1.3b|\
12 starfive,visionfive-2-v1.2a)
13 ucidef_set_interfaces_lan_wan "eth0" "eth1"
14 ;;
15 *)
16 ucidef_set_interface_lan 'eth0'
17 ;;
18 esac
19
20 board_config_flush
21
22 exit 0