From cdea47cbc36a6177ea09f0f876530d70a8a6e0f4 Mon Sep 17 00:00:00 2001
From: Jonas Gorski <jogo@openwrt.org>
Date: Thu, 2 Oct 2014 12:25:41 +0000
Subject: [PATCH] brcm63xx: Add DT support for 96358VW2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42736
---
 target/linux/brcm63xx/dts/bcm96358VW2.dts    | 8 ++++++++
 target/linux/brcm63xx/image/Makefile         | 3 ++-
 target/linux/brcm63xx/profiles/01-generic.mk | 8 ++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/brcm63xx/dts/bcm96358VW2.dts

diff --git a/target/linux/brcm63xx/dts/bcm96358VW2.dts b/target/linux/brcm63xx/dts/bcm96358VW2.dts
new file mode 100644
index 0000000000..bcf3c8101a
--- /dev/null
+++ b/target/linux/brcm63xx/dts/bcm96358VW2.dts
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+/include/ "bcm6358.dtsi"
+
+/ {
+	model = "Broadcom BCM96358VW2 reference board";
+	compatible = "brcm,bcm96358vw2", "brcm,bcm6358";
+};
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index ea3c4e6973..27d0c0a2e3 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -234,7 +234,6 @@ endef
 define Image/Build
 	dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
 	# Various routers
-	$(call Image/Build/CFE,$(1),96358VW2,6358,96358VW2-generic)
 	$(call Image/Build/CFE,$(1),96368MVNgr,6368,96368MVNgr-generic)
 	$(call Image/Build/CFE,$(1),96368MVWG,6368,96368MVWG-generic)
 
@@ -349,6 +348,8 @@ $(eval $(call CfeImageDTB,96348GW_11,bcm96348GW-11,96348GW-11,6348,96348GW-11-ge
 $(eval $(call CfeImageDTB,96348R,bcm96348R,96348R,6348,96348R-generic))
 # Generic 96358VW
 $(eval $(call CfeImageDTB,96358VW,bcm96358VW,96358VW,6358,96358VW-generic))
+# Generic 96358VW2
+$(eval $(call CfeImageDTB,96358VW2,bcm96358VW2,96358VW2,6358,96358VW2-generic))
 
 # ADB P.DG A4001N
 $(eval $(call CfeImageDTB,A4001N,a4001n,96328dg2x2,6328,A4001N,,--pad 8))
diff --git a/target/linux/brcm63xx/profiles/01-generic.mk b/target/linux/brcm63xx/profiles/01-generic.mk
index bfd4d64222..685d108b22 100644
--- a/target/linux/brcm63xx/profiles/01-generic.mk
+++ b/target/linux/brcm63xx/profiles/01-generic.mk
@@ -95,3 +95,11 @@ define Profile/96358VW/Description
 endef
 $(eval $(call Profile,96358VW))
 
+define Profile/96358VW2
+  NAME:=Generic 96358VW2
+  PACKAGES:=
+endef
+define Profile/96358VW2/Description
+  Package set optimized for 96358VW2.
+endef
+$(eval $(call Profile,96358VW2))
-- 
2.30.2