public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] ARM: omap: Fix GPMC init for OMAP3 platforms
@ 2014-07-09 15:18 Stefan Roese
  2014-07-09 15:18 ` [U-Boot] [PATCH 2/3] ARM: omap: Remove unused arch/arm/cpu/armv7/omap3/mem.c Stefan Roese
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Stefan Roese @ 2014-07-09 15:18 UTC (permalink / raw)
  To: u-boot

Commit a0a37183 (ARM: omap: merge GPMC initialization code for all
platform) broke NAND on OMAP3 based platforms. I noticed this while
testing the latest 2014.07-rc version on the TAO3530 board. NAND
detection did not work with this error message:

NAND:  nand: error: Unable to find NAND settings in GPMC Configuration - quitting

As OMAP3 configs don't set CONFIG_NAND but CONFIG_NAND_CMD. the GPMC
was not initialized for NAND at all. This patch now fixes this issue.

Tested on TAO3530 board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pekon Gupta <pekon@ti.com>
Cc: Tom Rini <trini@ti.com>
---
 arch/arm/cpu/armv7/omap-common/mem-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv7/omap-common/mem-common.c b/arch/arm/cpu/armv7/omap-common/mem-common.c
index 5bc7e1f..ba26cd1 100644
--- a/arch/arm/cpu/armv7/omap-common/mem-common.c
+++ b/arch/arm/cpu/armv7/omap-common/mem-common.c
@@ -89,7 +89,7 @@ void gpmc_init(void)
 						};
 	u32 size = GPMC_SIZE_16M;
 	u32 base = CONFIG_SYS_FLASH_BASE;
-#elif defined(CONFIG_NAND)
+#elif defined(CONFIG_NAND) || defined(CONFIG_CMD_NAND)
 /* configure GPMC for NAND */
 	const u32  gpmc_regs[GPMC_MAX_REG] = {	M_NAND_GPMC_CONFIG1,
 						M_NAND_GPMC_CONFIG2,
-- 
2.0.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-07-26  1:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09 15:18 [U-Boot] [PATCH 1/3] ARM: omap: Fix GPMC init for OMAP3 platforms Stefan Roese
2014-07-09 15:18 ` [U-Boot] [PATCH 2/3] ARM: omap: Remove unused arch/arm/cpu/armv7/omap3/mem.c Stefan Roese
2014-07-09 18:16   ` Gupta, Pekon
2014-07-26  1:26   ` [U-Boot] [U-Boot, " Tom Rini
2014-07-09 15:18 ` [U-Boot] [PATCH 3/3] ARM: omap: tao3530: Convert to generic board Stefan Roese
2014-07-26  1:26   ` [U-Boot] [U-Boot, " Tom Rini
2014-07-09 18:22 ` [U-Boot] [PATCH 1/3] ARM: omap: Fix GPMC init for OMAP3 platforms Gupta, Pekon
2014-07-10  5:28   ` Stefan Roese
2014-07-11 18:52     ` Tom Rini
2014-07-12 13:30       ` Gupta, Pekon
2014-07-12 14:47         ` Stefan Roese
2014-07-14  1:35           ` Gupta, Pekon
2014-07-26  1:25 ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox