summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <eballetbo@iseebcn.com>2013-02-07 23:14:49 +0000
committerTom Rini <trini@ti.com>2013-03-11 11:06:08 -0400
commitb51a5e3a0a8f412e221165f92991bb59a5cad111 (patch)
tree580c39565de1d23278788e27b87f59ea80afc0bb /arch/arm
parent6000992e265f507a18b0dcbcf2a89179822b42c4 (diff)
downloadu-boot-imx-b51a5e3a0a8f412e221165f92991bb59a5cad111.zip
u-boot-imx-b51a5e3a0a8f412e221165f92991bb59a5cad111.tar.gz
u-boot-imx-b51a5e3a0a8f412e221165f92991bb59a5cad111.tar.bz2
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 <eballetbo@iseebcn.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap3/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c
index 23ccc59..c6d9a42 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