summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorVaibhav Hiremath <hvaibhav@ti.com>2010-06-07 15:20:19 -0400
committerTom <Tom@bumblecow.com>2010-06-08 10:07:18 -0500
commit675e0eaf0f0429aac3c6fb41634fbcea2350fe49 (patch)
tree11fa21e76aa37ab179935b8411eca1a34150e5f9 /include/configs
parent5cc48f7e55df0d74a12d338de2117f05951fc536 (diff)
downloadu-boot-imx-675e0eaf0f0429aac3c6fb41634fbcea2350fe49.zip
u-boot-imx-675e0eaf0f0429aac3c6fb41634fbcea2350fe49.tar.gz
u-boot-imx-675e0eaf0f0429aac3c6fb41634fbcea2350fe49.tar.bz2
OMAP3EVM: Added NAND support
The EVMS have been shipping with NAND (instead of OneNAND) as default. So, this patch sets NAND as default. To choose OneNAND, define CMD_ONENAND instead of CMD_NAND in the config file omap3_evm.h. Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/omap3_evm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
index 0d99f7d..88af492 100644
--- a/include/configs/omap3_evm.h
+++ b/include/configs/omap3_evm.h
@@ -151,7 +151,7 @@
#define CONFIG_CMD_I2C /* I2C serial bus support */
#define CONFIG_CMD_MMC /* MMC support */
-#define CONFIG_CMD_ONENAND /* ONENAND support */
+#define CONFIG_CMD_NAND /* NAND support */
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_PING
@@ -306,7 +306,13 @@
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
#define CONFIG_SYS_ONENAND_BASE ONENAND_MAP
+#if defined(CONFIG_CMD_NAND)
+#define CONFIG_NAND_OMAP_GPMC
+#define GPMC_NAND_ECC_LP_x16_LAYOUT 1
+#define CONFIG_ENV_IS_IN_NAND
+#elif defined(CONFIG_CMD_ONENAND)
#define CONFIG_ENV_IS_IN_ONENAND 1
+#endif
#define ONENAND_ENV_OFFSET 0x260000 /* environment starts here */
#define SMNAND_ENV_OFFSET 0x260000 /* environment starts here */