This patch moves the sector for the environment from the gap between U-Boot
and the Linux kernel to the end of the NOR flash and this way lets the U-Boot
rom file to increase a little bit when adding functionality.

Signed-off-by: Asen Chavdarov Dimov <di...@ronetix.at>
---
 include/configs/pm9263.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h
index 1e282d2..f1bd389 100644
--- a/include/configs/pm9263.h
+++ b/include/configs/pm9263.h
@@ -340,9 +340,11 @@
 #elif defined(CONFIG_SYS_USE_FLASH) /* CFG_USE_FLASH */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_OFFSET      0x40000
 #define CONFIG_ENV_SECT_SIZE   0x10000
 #define        CONFIG_ENV_SIZE         0x10000
+#define NORFLASH_SIZE          0x400000 /* 4MiB */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + NORFLASH_SIZE 
- \
+                               CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OVERWRITE   1
 
 /* JFFS Partition offset set */
-- 
1.7.4.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to