From 0cd3e6d58134fe238d76f93d1c574f1f07d3e26a Mon Sep 17 00:00:00 2001
From: Clive Messer <clive.messer@squeezecommunity.org>
Date: Mon, 6 Apr 2015 12:08:09 +0100
Subject: [PATCH] Add support for alternative revb1 Wandboard fdtfile

---
 configs/wandboard_dl_revb1_defconfig   | 4 ++++
 configs/wandboard_quad_revb1_defconfig | 4 ++++
 configs/wandboard_solo_revb1_defconfig | 4 ++++
 include/configs/wandboard.h            | 4 +++-
 4 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 configs/wandboard_dl_revb1_defconfig
 create mode 100644 configs/wandboard_quad_revb1_defconfig
 create mode 100644 configs/wandboard_solo_revb1_defconfig

diff -ur --new-file u-boot-2014.10/configs/wandboard_dl_revb1_defconfig u-boot-2014.10.wand/configs/wandboard_dl_revb1_defconfig
--- u-boot-2014.10/configs/wandboard_dl_revb1_defconfig	1970-01-01 01:00:00.000000000 +0100
+++ u-boot-2014.10.wand/configs/wandboard_dl_revb1_defconfig	2015-04-06 15:40:09.157063220 +0100
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6dl.cfg,MX6DL,DDR_MB=1024,WANDREVB1"
+CONFIG_ARM=y
+CONFIG_TARGET_WANDBOARD=y
diff -ur --new-file u-boot-2014.10/configs/wandboard_quad_revb1_defconfig u-boot-2014.10.wand/configs/wandboard_quad_revb1_defconfig
--- u-boot-2014.10/configs/wandboard_quad_revb1_defconfig	1970-01-01 01:00:00.000000000 +0100
+++ u-boot-2014.10.wand/configs/wandboard_quad_revb1_defconfig	2015-04-06 15:39:54.341698963 +0100
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q2g.cfg,MX6Q,DDR_MB=2048,WANDREVB1"
+CONFIG_ARM=y
+CONFIG_TARGET_WANDBOARD=y
diff -ur --new-file u-boot-2014.10/configs/wandboard_solo_revb1_defconfig u-boot-2014.10.wand/configs/wandboard_solo_revb1_defconfig
--- u-boot-2014.10/configs/wandboard_solo_revb1_defconfig	1970-01-01 01:00:00.000000000 +0100
+++ u-boot-2014.10.wand/configs/wandboard_solo_revb1_defconfig	2015-04-06 15:40:27.622517219 +0100
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s.cfg,MX6S,DDR_MB=512,WANDREVB1"
+CONFIG_ARM=y
+CONFIG_TARGET_WANDBOARD=y
diff -ur --new-file u-boot-2014.10/include/configs/wandboard.h u-boot-2014.10.wand/include/configs/wandboard.h
--- u-boot-2014.10/include/configs/wandboard.h	2015-04-06 16:55:23.017946360 +0100
+++ u-boot-2014.10.wand/include/configs/wandboard.h	2015-04-06 15:39:02.355420806 +0100
@@ -117,10 +117,18 @@
 
 
 #if defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
+#if defined(CONFIG_WANDREVB1)
+#define CONFIG_DEFAULT_FDT_FILE         "imx6dl-wandboard-revb1.dtb"
+#else
 #define CONFIG_DEFAULT_FDT_FILE		"imx6dl-wandboard.dtb"
+#endif
 #elif defined(CONFIG_MX6Q)
+#if defined(CONFIG_WANDREVB1)
+#define CONFIG_DEFAULT_FDT_FILE         "imx6q-wandboard-revb1.dtb"
+#else
 #define CONFIG_DEFAULT_FDT_FILE		"imx6q-wandboard.dtb"
 #endif
+#endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
