ARM: omap: Fix GPMC init for OMAP3 platforms
[platform/kernel/u-boot.git] / arch / arm / cpu / armv7 / omap-common / mem-common.c
index 5bc7e1f..ba26cd1 100644 (file)
@@ -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,