diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-05-24 15:07:27 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-03 14:32:38 -0700 |
commit | b490e866dc14b55a99e53d14ade4543daeba157a (patch) | |
tree | c005129068632cbebb8684c96810ba60f28bbd15 /common/fmap.c | |
parent | e52aba6ecac45d2c27acc78316e835620840408a (diff) | |
download | chrome-ec-b490e866dc14b55a99e53d14ade4543daeba157a.tar.gz |
Clean up flash section defines and increase lm4 image size
The firmware defines had two almost-identical sets. Coalesce into one
consistent set.
Link had 256 KB flash, but only allowed 2 80KB images. Future
LM4-based platforms (slippy/peppy/falco/etc) will now use the entire
flash, with RO=124KB, pstate=4KB, RW=128KB. This matches what the
STM32 platforms do, where pstate is contiguous with the RO firmware.
No functional change to STM32-based platforms.
BUG=chrome-os-partner:19176
BRANCH=none
TEST=build all platforms and dump_fmap ec.bin.
- stm32-based platforms should report RO=61440@0, RW=65536@0x10000
- link should report RO=81920@0, RW=81920@0x14000
- slippy should report RO=129024@0, RW=131072@0x20000
Change-Id: I20b1d95c16250d9a5d228ead06eef03d96548823
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/56655
Diffstat (limited to 'common/fmap.c')
-rw-r--r-- | common/fmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/fmap.c b/common/fmap.c index fa676936cb..cac3b61ca2 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -69,8 +69,8 @@ const struct _ec_fmap { * volatile data (ex, calibration results). */ .area_name = "EC_RO", - .area_offset = CONFIG_SECTION_RO_OFF, - .area_size = CONFIG_SECTION_RO_SIZE, + .area_offset = CONFIG_FW_RO_OFF, + .area_size = CONFIG_FW_RO_SIZE, .area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO, }, { @@ -108,8 +108,8 @@ const struct _ec_fmap { * EC_RO and aligned to hardware specification. */ .area_name = "WP_RO", - .area_offset = CONFIG_SECTION_WP_RO_OFF, - .area_size = CONFIG_SECTION_WP_RO_SIZE, + .area_offset = CONFIG_FW_WP_RO_OFF, + .area_size = CONFIG_FW_WP_RO_SIZE, .area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO, }, @@ -117,8 +117,8 @@ const struct _ec_fmap { { /* The range of RW firmware to be auto-updated. */ .area_name = "EC_RW", - .area_offset = CONFIG_SECTION_RW_OFF, - .area_size = CONFIG_SECTION_RW_SIZE, + .area_offset = CONFIG_FW_RW_OFF, + .area_size = CONFIG_FW_RW_SIZE, .area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO, }, { |