From 709fafe6acdcfc298e166e9ef75e45504ad98556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6glund?= <jonas.hoglund@embeddednation.com> Date: Fri, 2 Sep 2016 14:22:20 +0200 Subject: [PATCH] Network setup for ex300 --- iopsys-ramips/base-files/etc/board.d/02_network | 6 ++++++ iopsys-ramips/base-files/lib/ramips.sh | 3 +++ iopsys-ramips/dts/EX300.dts | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/iopsys-ramips/base-files/etc/board.d/02_network b/iopsys-ramips/base-files/etc/board.d/02_network index a78912dbc..513eafcc2 100755 --- a/iopsys-ramips/base-files/etc/board.d/02_network +++ b/iopsys-ramips/base-files/etc/board.d/02_network @@ -166,6 +166,12 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "1" "1 2 6t" ucidef_add_switch_vlan "switch0" "2" "0 6t" ;; + ex300) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 6t" + ucidef_add_switch_vlan "switch0" "2" "0 6t" + ;; awm002-evb | \ awm003-evb | \ argus-atp52b | \ diff --git a/iopsys-ramips/base-files/lib/ramips.sh b/iopsys-ramips/base-files/lib/ramips.sh index 8dc05b060..c63c619f0 100755 --- a/iopsys-ramips/base-files/lib/ramips.sh +++ b/iopsys-ramips/base-files/lib/ramips.sh @@ -424,6 +424,9 @@ ramips_board_detect() { *"Mediatek MT7621 evaluation board") name="mt7621" ;; + *"ex300") + name="ex300" + ;; *"Mediatek MT7628AN evaluation board") name="mt7628" ;; diff --git a/iopsys-ramips/dts/EX300.dts b/iopsys-ramips/dts/EX300.dts index ef06f67fe..9b65d23ec 100644 --- a/iopsys-ramips/dts/EX300.dts +++ b/iopsys-ramips/dts/EX300.dts @@ -4,7 +4,7 @@ / { compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc"; - model = "Mediatek MT7621 evaluation board"; + model = "ex300"; memory@0 { device_type = "memory"; -- GitLab