]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/armv7/omap-common/mem-common.c
ARM: omap: Fix GPMC init for OMAP3 platforms
[people/ms/u-boot.git] / arch / arm / cpu / armv7 / omap-common / mem-common.c
index 5bc7e1f19b3a7655dceedac811f53ec2aeae8723..ba26cd1fdb78b35a2c81707c2ee6760af7b95dd0 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,