From: Enric Balletbo i Serra Date: Thu, 7 Feb 2013 23:14:49 +0000 (+0000) Subject: OMAP3: Initialize gpmc if SPL_ONENAND_SUPPORT is enabled. X-Git-Tag: v2013.04-rc2~24^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b51a5e3a0a8f412e221165f92991bb59a5cad111;p=u-boot OMAP3: Initialize gpmc if SPL_ONENAND_SUPPORT is enabled. In order to use SPL boot from OneNAND we should initialize the gpmc. Signed-off-by: Enric Balletbo i Serra --- diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index 23ccc59385..c6d9a425a5 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