summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-30 16:00:15 -0400
committerTom Rini <trini@ti.com>2013-05-01 16:41:10 -0400
commitda85c9c81331575d6e01134050506e8d630688c5 (patch)
tree9b7bd9498ce8186b23fb1b8529fccdb46e19b851
parentd196bd880347373237d73e0d115b4d51c68cf2ad (diff)
downloadu-boot-imx-da85c9c81331575d6e01134050506e8d630688c5.zip
u-boot-imx-da85c9c81331575d6e01134050506e8d630688c5.tar.gz
u-boot-imx-da85c9c81331575d6e01134050506e8d630688c5.tar.bz2
mx28evk: Guard NAND-related ENV defines with CONFIG_ENV_IS_IN_NAND
The redundancy related defines are only correct for NAND, so guard all of that area with CONFIG_ENV_IS_IN_NAND Cc: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r--include/configs/mx28evk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index d470b47..3747955 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -138,14 +138,14 @@
#define CONFIG_SYS_NAND_5_ADDR_CYCLE
/* Environment is in NAND */
+#ifdef CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
#define CONFIG_ENV_SECT_SIZE (128 * 1024)
#define CONFIG_ENV_RANGE (512 * 1024)
-#ifndef CONFIG_ENV_OFFSET
#define CONFIG_ENV_OFFSET 0x300000
-#endif
#define CONFIG_ENV_OFFSET_REDUND \
(CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)
+#endif
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS