summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2012-02-28 23:28:40 +0000
committerAndy Fleming <afleming@freescale.com>2012-04-24 23:58:31 -0500
commit15c8c6c20cdd00d9a1a76f70297a09848d865657 (patch)
tree100970276aaa79b05c225f4a79fde7f980c152a4
parentc9b2feafaaf0a7998347589f9a29f7169873af6e (diff)
downloadu-boot-imx-15c8c6c20cdd00d9a1a76f70297a09848d865657.zip
u-boot-imx-15c8c6c20cdd00d9a1a76f70297a09848d865657.tar.gz
u-boot-imx-15c8c6c20cdd00d9a1a76f70297a09848d865657.tar.bz2
powerpc/p2041rdb: add env in NAND support
Add env in NAND support when boot from NAND. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r--include/configs/P2041RDB.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h
index 501726c..fe39d4e 100644
--- a/include/configs/P2041RDB.h
+++ b/include/configs/P2041RDB.h
@@ -96,6 +96,11 @@
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_OFFSET (512 * 1097)
+#elif defined(CONFIG_NAND)
+#define CONFIG_SYS_EXTRA_ENV_RELOC
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET (5 * CONFIG_SYS_NAND_BLOCK_SIZE)
#else
#define CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE \