NAND: Fix CONFIG_ENV_ADDR for MPC8572DS
authorHaiying Wang <Haiying.Wang@freescale.com>
Fri, 31 Oct 2008 10:06:14 +0000 (05:06 -0500)
committerScott Wood <scottwood@freescale.com>
Fri, 31 Oct 2008 18:14:30 +0000 (13:14 -0500)
CONFIG_ENV_ADDR should be (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE).

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/configs/MPC8572DS.h

index f98e7fbf000a2a46ed8383a84e802ec974ec9821..244ecc29443829b8cb64f93c36e29bd749ff0aec 100644 (file)
@@ -509,7 +509,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
 #define CONFIG_ENV_ADDR                0xfff80000
 #else
-#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K (one sector) */