summaryrefslogtreecommitdiff
path: root/include/configs/smdk6400.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-05-18 16:07:22 +0200
committerScott Wood <scottwood@freescale.com>2009-07-07 17:58:07 -0500
commitb74ab737369bbbe66c15cbe6c0d0b6a351b00c96 (patch)
treedb8ac354c673912879ea5632114b18f17a2d53cc /include/configs/smdk6400.h
parent378adfcdf4bbd77ee4cbc3276d4733e218308a21 (diff)
downloadu-boot-imx-b74ab737369bbbe66c15cbe6c0d0b6a351b00c96.zip
u-boot-imx-b74ab737369bbbe66c15cbe6c0d0b6a351b00c96.tar.gz
u-boot-imx-b74ab737369bbbe66c15cbe6c0d0b6a351b00c96.tar.bz2
nand_spl: read environment early, when booting from NAND using nand_spl
Currently, when booting from NAND using nand_spl, in the beginning the default environment is used until later in boot process the dynamic environment is read out. This way environment variables that must be interpreted early, like the baudrate or "silent", cannot be modified dynamically and remain at their default values. Fix this problem by reading out main and redundand (if used) copies of the environment in the nand_spl code. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/configs/smdk6400.h')
-rw-r--r--include/configs/smdk6400.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/smdk6400.h b/include/configs/smdk6400.h
index cac58cf..018f576 100644
--- a/include/configs/smdk6400.h
+++ b/include/configs/smdk6400.h
@@ -209,6 +209,9 @@
/* total memory available to uboot */
#define CONFIG_SYS_UBOOT_SIZE (1024 * 1024)
+/* Put environment copies after the end of U-Boot owned RAM */
+#define CONFIG_NAND_ENV_DST (CONFIG_SYS_UBOOT_BASE + CONFIG_SYS_UBOOT_SIZE)
+
#ifdef CONFIG_ENABLE_MMU
#define CONFIG_SYS_MAPPED_RAM_BASE 0xc0000000
#define CONFIG_BOOTCOMMAND "nand read 0xc0018000 0x60000 0x1c0000;" \