OMAP3: Initialize gpmc if SPL_ONENAND_SUPPORT is enabled.
authorEnric Balletbo i Serra <eballetbo@iseebcn.com>
Thu, 7 Feb 2013 23:14:49 +0000 (23:14 +0000)
committerTom Rini <trini@ti.com>
Mon, 11 Mar 2013 15:06:08 +0000 (11:06 -0400)
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

index 23ccc59385e8b9b8334f75d949d8c2a50ff651ce..c6d9a425a592d7fae469fa0acc0b733fe99836c6 100644 (file)
@@ -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