diff options
author | Paul Burton <paul.burton@imgtec.com> | 2013-11-08 11:18:56 +0000 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2013-11-09 17:21:02 +0100 |
commit | fba6f45cdcf77985c4bf891322b5442bda1005e0 (patch) | |
tree | 2d1539b9d2911ffc6a5d4d323e74eee8f75bb982 /include/configs/malta.h | |
parent | 3ced12a06baaf90039fa171688d33358b15613d1 (diff) |
malta: store environment in flash
Allow the environment to be stored in the monitor flash of a Malta
board. The environment is stored in the final 128KB of the flash, which
both leaves the majority of the flash available for U-boot code and also
matches the location which YAMON uses.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'include/configs/malta.h')
-rw-r--r-- | include/configs/malta.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/configs/malta.h b/include/configs/malta.h index a0f6a4a7e9..b58b6e4a5f 100644 --- a/include/configs/malta.h +++ b/include/configs/malta.h @@ -84,12 +84,6 @@ #define CONFIG_CONS_INDEX 1 /* - * Environment - */ -#define CONFIG_ENV_IS_NOWHERE -#define CONFIG_ENV_SIZE 0x10000 - -/* * Flash configuration */ #define CONFIG_SYS_FLASH_BASE (KSEG1 | MALTA_FLASH_BASE) @@ -100,6 +94,15 @@ #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* + * Environment + */ +#define CONFIG_ENV_IS_IN_FLASH +#define CONFIG_ENV_SECT_SIZE 0x20000 +#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE +#define CONFIG_ENV_ADDR \ + (CONFIG_SYS_FLASH_BASE + (4 << 20) - CONFIG_ENV_SIZE) + +/* * Commands */ #include <config_cmd_default.h> |