diff mbox

[OpenWrt-Devel,2/2] kirkwood: enable switch on Linksys EA3500

Message ID 1421595231-17070-2-git-send-email-leitec@staticky.com
State Accepted
Headers show

Commit Message

Claudio Leite Jan. 18, 2015, 3:33 p.m. UTC
Signed-off-by: Claudio Leite <leitec@staticky.com>
---
 .../linux/kirkwood/base-files/etc/uci-defaults/02_network |    3 +++
 target/linux/kirkwood/patches-3.14/170-ea3500.patch       |   13 ++++++++++++-
 target/linux/kirkwood/patches-3.18/170-ea3500.patch       |   13 ++++++++++++-
 3 files changed, 27 insertions(+), 2 deletions(-)

Comments

Luka Perkov Jan. 18, 2015, 4:50 p.m. UTC | #1
On Sun, Jan 18, 2015 at 10:33:51AM -0500, Claudio Leite wrote:
> Signed-off-by: Claudio Leite <leitec@staticky.com>
> ---
>  .../linux/kirkwood/base-files/etc/uci-defaults/02_network |    3 +++
>  target/linux/kirkwood/patches-3.14/170-ea3500.patch       |   13 ++++++++++++-
>  target/linux/kirkwood/patches-3.18/170-ea3500.patch       |   13 ++++++++++++-
>  3 files changed, 27 insertions(+), 2 deletions(-)

Applied in r44036. Thank you.

Luka
diff mbox

Patch

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 9fd6845..994d7e8 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 ac4f45c..58e7a1f 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 95007fa..84645de 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 {