M28EVK: Fix build if CONFIG_CMD_NAND not selected
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 31 Dec 2011 18:28:22 +0000 (18:28 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Jan 2012 07:40:10 +0000 (08:40 +0100)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
include/configs/m28evk.h

index 2b4871e1f9bf9ebadcfecbf775309e5289d47856..b891b12fef81f38ce19122606efa67dc1fac667f 100644 (file)
 /*
  * NAND
  */
+#define        CONFIG_ENV_SIZE                 (16 * 1024)
 #ifdef CONFIG_CMD_NAND
 #define        CONFIG_NAND_MXS
 #define CONFIG_APBH_DMA
 
 /* Environment is in NAND */
 #define        CONFIG_ENV_IS_IN_NAND
-#define        CONFIG_ENV_SIZE                 (16 * 1024)
 #define        CONFIG_ENV_SIZE_REDUND          CONFIG_ENV_SIZE
 #define        CONFIG_ENV_SECT_SIZE            (128 * 1024)
 #define        CONFIG_ENV_RANGE                (512 * 1024)
                "512k(redundant-environment),"  \
                "4m(kernel),"                   \
                "-(filesystem)"
+#else
+#define        CONFIG_ENV_IS_NOWHERE
 #endif
 
 /*