diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-12 09:20:52 -0700 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-12 17:33:56 -0700 |
commit | 099ece097185328f6c8c1532545d251960005406 (patch) | |
tree | a0ee14007a4016b1c150cdb865d8d0a9ae72f6f9 /include | |
parent | 53101b5bcd5f3e3133f80af45d7d0cf952455579 (diff) |
Enable placing u-boot environment in SPI flash.
This is the last change in the series which actually enables
saving the environment in the SPI flash on the platforms where
ICH is used as the SPI controller.
BUG=chromium-os:20105
TEST=manual
. this change was tested combined with other modifications; The
ability to read and save the u-boot environment in an SPI
flash was demonstrated.
Change-Id: I25c33cb736ac95215c7c169f5e4ffea485936e6e
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7535
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/coreboot.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index 8e5bcb15018..50c7f561ce8 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -295,13 +295,19 @@ #define CONFIG_SYS_MAX_FLASH_SECT 1 #define CONFIG_SYS_MAX_FLASH_BANKS 1 -#define CONFIG_SYS_NO_FLASH /* means no NOR flash */ +#define CONFIG_SYS_NO_FLASH /* means no NOR flash */ /*----------------------------------------------------------------------- * Environment configuration */ -#define CONFIG_ENV_IS_NOWHERE -#define CONFIG_ENV_SIZE 0x01000 +#define CONFIG_ENV_IS_IN_SPI_FLASH + + /* Must match the flash map definition! */ +#define CONFIG_ENV_SIZE 0x4000 +#define CONFIG_ENV_OFFSET 0x1c000 + +/* Might want to keep two copies in the 16K space */ +#define CONFIG_ENV_SECT_SIZE 0x1000 /*----------------------------------------------------------------------- * PCI configuration |