summaryrefslogtreecommitdiff
path: root/include/configs/gw_ventana.h
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2017-03-13 15:51:09 (GMT)
committerStefano Babic <sbabic@denx.de>2017-03-19 16:39:59 (GMT)
commitd883fcc6bbb2fcc3df90857fee99c2f543a0289c (patch)
tree9c90c135db8e4a3e1809beff9729bc172771dc7e /include/configs/gw_ventana.h
parent3e0a71c157951c0f88a31182a6f3159cd3e12e23 (diff)
downloadu-boot-d883fcc6bbb2fcc3df90857fee99c2f543a0289c.tar.xz
imx: ventana: add EMMC configuration
Prepare for boards with EMMC instead of NAND flash Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'include/configs/gw_ventana.h')
-rw-r--r--include/configs/gw_ventana.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h
index d51bcc9..1606f20 100644
--- a/include/configs/gw_ventana.h
+++ b/include/configs/gw_ventana.h
@@ -68,7 +68,7 @@
#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
#endif
-#else
+#elif defined(CONFIG_SPL_NAND_SUPPORT)
/* Enable NAND support */
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NAND_TRIMFFS
@@ -227,9 +227,11 @@
/* Persistent Environment Config */
#ifdef CONFIG_SPI_FLASH
-#define CONFIG_ENV_IS_IN_SPI_FLASH
+ #define CONFIG_ENV_IS_IN_SPI_FLASH
+#elif defined(CONFIG_SPL_NAND_SUPPORT)
+ #define CONFIG_ENV_IS_IN_NAND
#else
-#define CONFIG_ENV_IS_IN_NAND
+ #define CONFIG_ENV_IS_IN_MMC
#endif
#if defined(CONFIG_ENV_IS_IN_MMC)
#define CONFIG_SYS_MMC_ENV_DEV 0