summaryrefslogtreecommitdiff
path: root/common/fmap.c
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-05-02 15:29:07 +0800
committerLouis Yung-Chieh Lo <yjlou@chromium.org>2012-05-02 15:29:07 +0800
commitf1467b61b7a1b981f85029699c8073666e7abd41 (patch)
tree348fe40f876cdbe7c0da51922de5fbf5ac6ccb09 /common/fmap.c
parentcab258137b41e63c78d765883019a3b7c1540692 (diff)
downloadchrome-ec-f1467b61b7a1b981f85029699c8073666e7abd41.tar.gz
Refine the EC flash size in FMAP structure.
BUG=none TEST=make and dump: % dump_fmap build/link/ec.bin ... fmap_size: 0x0003f800 (260096) ... Change-Id: I9e5a5d1a1d2c9d3e6660a13d5b2fff438517af7e
Diffstat (limited to 'common/fmap.c')
-rw-r--r--common/fmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/fmap.c b/common/fmap.c
index 8ee698d615..5316917b6a 100644
--- a/common/fmap.c
+++ b/common/fmap.c
@@ -49,7 +49,8 @@ const struct _ec_fmap {
.fmap_ver_major = FMAP_VER_MAJOR,
.fmap_ver_minor = FMAP_VER_MINOR,
.fmap_base = CONFIG_FLASH_BASE,
- .fmap_size = CONFIG_FLASH_SIZE,
+ /* NOTE: EC implementation reserves one bank for itself */
+ .fmap_size = CONFIG_FLASH_SIZE - CONFIG_FLASH_BANK_SIZE,
.fmap_name = "EC_FMAP",
.fmap_nareas = NUM_EC_FMAP_AREAS,
},