]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: mpc8544ds: Fix environmental variable location
authorYork Sun <york.sun@nxp.com>
Wed, 7 Jun 2017 17:12:56 +0000 (10:12 -0700)
committerYork Sun <york.sun@nxp.com>
Mon, 12 Jun 2017 19:18:37 +0000 (12:18 -0700)
Signed-off-by: York Sun <york.sun@nxp.com>
include/configs/MPC8544DS.h

index 9b2f8364d5248a602a3e3a2b879b1f1f822bf0b5..3b62449ea5f61ffbe52a7f52f7abd7e2b4406bff 100644 (file)
@@ -326,13 +326,13 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
+#define CONFIG_ENV_SECT_SIZE   0x10000 /* 64K (one sector) */
 #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
 #define CONFIG_ENV_ADDR                0xfff80000
 #else
-#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x70000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
-#define CONFIG_ENV_SECT_SIZE   0x10000 /* 64K (one sector) */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */