From: Haiying Wang Date: Fri, 31 Oct 2008 10:06:14 +0000 (-0500) Subject: NAND: Fix CONFIG_ENV_ADDR for MPC8572DS X-Git-Tag: v2009.01-rc1~97^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fc110bd8a8d642b8f7b0653bd9a08a0b7c3d50b;p=u-boot NAND: Fix CONFIG_ENV_ADDR for MPC8572DS CONFIG_ENV_ADDR should be (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE). Signed-off-by: Haiying Wang Signed-off-by: Kumar Gala --- diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h index f98e7fbf00..244ecc2944 100644 --- a/include/configs/MPC8572DS.h +++ b/include/configs/MPC8572DS.h @@ -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) */