diff mbox

[LEDE-DEV,4/9] lantiq: VGV7519 - add vlan support

Message ID 1464296907-28020-4-git-send-email-dev@kresin.me
State Accepted
Headers show

Commit Message

Mathias Kresin May 26, 2016, 9:08 p.m. UTC
Add the lantiq,switch property to enable vlans and setup them up.

Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 3 ++-
 target/linux/lantiq/dts/VGV7519.dtsi                  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

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 b27b802..58fb6ca 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -126,7 +126,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 7891ab1..005cecd 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";