Patchwork [U-Boot,PATCHv2,4/4] OMAP3: Initialize gpmc if SPL_ONENAND_SUPPORT is enabled.

login
register
mail settings
Submitter Enric Balletbò i Serra
Date Feb. 8, 2013, 9:14 a.m.
Message ID <1360314889-16955-5-git-send-email-eballetbo@gmail.com>
Download mbox | patch
Permalink /patch/219070/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Enric Balletbò i Serra - Feb. 8, 2013, 9:14 a.m.
From: Enric Balletbo i Serra <eballetbo@iseebcn.com>

In order to use SPL boot from OneNAND we should initialize the gpmc.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
---
 arch/arm/cpu/armv7/omap3/board.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c
index 89c587e..63063c8 100644
--- a/arch/arm/cpu/armv7/omap3/board.c
+++ b/arch/arm/cpu/armv7/omap3/board.c
@@ -110,7 +110,7 @@  int board_mmc_init(bd_t *bis)
 
 void spl_board_init(void)
 {
-#ifdef CONFIG_SPL_NAND_SUPPORT
+#if defined(CONFIG_SPL_NAND_SUPPORT) || defined(CONFIG_SPL_ONENAND_SUPPORT)
 	gpmc_init();
 #endif
 #ifdef CONFIG_SPL_I2C_SUPPORT