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>
This commit is contained in:
parent
1deab53d88
commit
1e395608cc
2 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,8 @@ BTHOMEHUBV5A)
|
||||||
VGV7519)
|
VGV7519)
|
||||||
lan_mac=$(mtd_get_mac_binary board_config 22)
|
lan_mac=$(mtd_get_mac_binary board_config 22)
|
||||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
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)
|
VGV7510KW22)
|
||||||
|
|
|
@ -227,6 +227,7 @@
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
mac-address = [ 00 11 22 33 44 55 ];
|
mac-address = [ 00 11 22 33 44 55 ];
|
||||||
|
lantiq,switch;
|
||||||
|
|
||||||
ethernet@0 {
|
ethernet@0 {
|
||||||
compatible = "lantiq,xrx200-pdi-port";
|
compatible = "lantiq,xrx200-pdi-port";
|
||||||
|
|
Loading…
Reference in a new issue