aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-01-18 16:45:01 +0000
committerLuka Perkov <luka@openwrt.org>2015-01-18 16:45:01 +0000
commitd26833ac639a5aace8d5e0f572fbcf6fa8e24dc7 (patch)
tree864d996a45766ce3a7b0f3c821aa2c2352f367ce /target/linux/kirkwood
parent7fe871a304e6314419f1ed3f813056b18726a34e (diff)
downloadmaster-187ad058-d26833ac639a5aace8d5e0f572fbcf6fa8e24dc7.tar.gz
master-187ad058-d26833ac639a5aace8d5e0f572fbcf6fa8e24dc7.tar.bz2
master-187ad058-d26833ac639a5aace8d5e0f572fbcf6fa8e24dc7.zip
kirkwood: enable switch on Linksys EA3500
Signed-off-by: Claudio Leite <leitec@staticky.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44036 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood')
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/02_network3
-rw-r--r--target/linux/kirkwood/patches-3.14/170-ea3500.patch13
-rw-r--r--target/linux/kirkwood/patches-3.18/170-ea3500.patch13
3 files changed, 27 insertions, 2 deletions
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
index 9fd6845924..994d7e8998 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@ -55,6 +55,9 @@ case "$board" in
;;
"ea3500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ucidef_add_switch "switch0" "1" "0"
+ add_port_based_vlan "switch0" "1" "0 1 2 3 5"
+ add_port_based_vlan "switch0" "2" "4 6"
;;
"ea4500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"
diff --git a/target/linux/kirkwood/patches-3.14/170-ea3500.patch b/target/linux/kirkwood/patches-3.14/170-ea3500.patch
index ac4f45ca3e..58e7a1fbd1 100644
--- a/target/linux/kirkwood/patches-3.14/170-ea3500.patch
+++ b/target/linux/kirkwood/patches-3.14/170-ea3500.patch
@@ -10,7 +10,7 @@
kirkwood-guruplug-server-plus.dtb \
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-ea3500.dts
-@@ -0,0 +1,149 @@
+@@ -0,0 +1,160 @@
+/*
+ * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500
+ *
@@ -112,6 +112,17 @@
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ };
+ };
++
++ mvsw61xx {
++ compatible = "marvell,88e6171";
++ status = "okay";
++ reg = <0x10>;
++
++ mii-bus = <&mdio>;
++ cpu-port-0 = <5>;
++ cpu-port-1 = <6>;
++ is-indirect;
++ };
+};
+
+&nand {
diff --git a/target/linux/kirkwood/patches-3.18/170-ea3500.patch b/target/linux/kirkwood/patches-3.18/170-ea3500.patch
index 95007fa30d..84645decf3 100644
--- a/target/linux/kirkwood/patches-3.18/170-ea3500.patch
+++ b/target/linux/kirkwood/patches-3.18/170-ea3500.patch
@@ -10,7 +10,7 @@
kirkwood-guruplug-server-plus.dtb \
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-ea3500.dts
-@@ -0,0 +1,149 @@
+@@ -0,0 +1,160 @@
+/*
+ * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500
+ *
@@ -112,6 +112,17 @@
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ };
+ };
++
++ mvsw61xx {
++ compatible = "marvell,88e6171";
++ status = "okay";
++ reg = <0x10>;
++
++ mii-bus = <&mdio>;
++ cpu-port-0 = <5>;
++ cpu-port-1 = <6>;
++ is-indirect;
++ };
+};
+
+&nand {