[U-Boot] [PATCH V4] OMAP3EVM: Added NAND support

From: Vaibhav Hiremath hvaibhav@ti.com
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
Changes from V3 :- - Added undef statement for CMD_ONENAND.
Signed-off-by: Vaibhav Hiremath hvaibhav@ti.com --- include/configs/omap3_evm.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h index 6709edc..36cb5e0 100644 --- a/include/configs/omap3_evm.h +++ b/include/configs/omap3_evm.h @@ -113,7 +113,8 @@
#define CONFIG_CMD_I2C /* I2C serial bus support */ #define CONFIG_CMD_MMC /* MMC support */ -#define CONFIG_CMD_ONENAND /* ONENAND support */ +#undef CONFIG_CMD_ONENAND /* ONENAND support */ +#define CONFIG_CMD_NAND /* NAND support */ #define CONFIG_CMD_DHCP #define CONFIG_CMD_PING
@@ -271,7 +272,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 1 +#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 */
-- 1.6.2.4

hvaibhav@ti.com wrote:
From: Vaibhav Hiremath hvaibhav@ti.com
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
Changes from V3 :-
- Added undef statement for CMD_ONENAND.
This is looking good. Is there interest in making the onenand a makefile config option? It would depend on how common the onenand boards are. Tom

-----Original Message----- From: Tom [mailto:Tom.Rix@windriver.com] Sent: Friday, November 27, 2009 9:21 PM To: Hiremath, Vaibhav Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH V4] OMAP3EVM: Added NAND support
hvaibhav@ti.com wrote:
From: Vaibhav Hiremath hvaibhav@ti.com
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
Changes from V3 :-
- Added undef statement for CMD_ONENAND.
This is looking good. Is there interest in making the onenand a makefile config option? It would depend on how common the onenand boards are.
[Hiremath, Vaibhav] As far as I know, majority of the EVM's shipping out are with NAND parts, so should be safe to move to NAND as a default.
Thanks, Vaibhav
Tom
participants (3)
-
Hiremath, Vaibhav
-
hvaibhav@ti.com
-
Tom