aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-05-26 23:08:22 +0200
committerJohn Crispin <john@phrozen.org>2016-05-27 15:50:16 +0200
commit1e395608cc7e0614f36137ad2a4b3ea6836fd9d6 (patch)
tree8b89391a116a39e6b00a3c3000cac0143557f302 /target/linux/lantiq
parent1deab53d88cf4f69efbffeb4716a100d42b0aace (diff)
downloadupstream-1e395608cc7e0614f36137ad2a4b3ea6836fd9d6.tar.gz
upstream-1e395608cc7e0614f36137ad2a4b3ea6836fd9d6.tar.bz2
upstream-1e395608cc7e0614f36137ad2a4b3ea6836fd9d6.zip
lantiq: VGV7519 - add vlan support
Add the lantiq,switch property to enable vlans and setup them up. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network3
-rw-r--r--target/linux/lantiq/dts/VGV7519.dtsi1
2 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index 4166df0d8e..9d4be58378 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -130,7 +130,8 @@ BTHOMEHUBV5A)
VGV7519)
lan_mac=$(mtd_get_mac_binary board_config 22)
wan_mac=$(macaddr_add "$lan_mac" 1)
- ucidef_set_interface_lan 'eth0'
+ ucidef_add_switch "switch0" \
+ "4:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "6t@eth0"
;;
VGV7510KW22)
diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi
index 7891ab1534..005cecdddb 100644
--- a/target/linux/lantiq/dts/VGV7519.dtsi
+++ b/target/linux/lantiq/dts/VGV7519.dtsi
@@ -227,6 +227,7 @@
#size-cells = <0>;
reg = <0>;
mac-address = [ 00 11 22 33 44 55 ];
+ lantiq,switch;
ethernet@0 {
compatible = "lantiq,xrx200-pdi-port";