summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-05-22 19:38:40 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-05-23 14:01:29 -0700
commitaf77c1b59d206195dc9f25bc1646c351764b5131 (patch)
tree3b5265b6b17fbc964e5188c24325f1add814ced6
parent767ad5505d290f810a85699f82fad358482d8631 (diff)
downloadchrome-ec-af77c1b59d206195dc9f25bc1646c351764b5131.tar.gz
do not advertise RW-B in FMAP if it doesn't exist
The Snow board has currently the second RW partition de-activated due to flash space constraints, we don't want to send false information to the tools. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:8865 TEST=on Snow, flashrom -p internal:bus=lpc -i EC_RW -w ec.bin Change-Id: I6da60028aa69aeb476d5c2d98df5a03ece961891
-rw-r--r--common/fmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/fmap.c b/common/fmap.c
index 00b127a1b7..2a2d288d5f 100644
--- a/common/fmap.c
+++ b/common/fmap.c
@@ -144,6 +144,7 @@ const struct _ec_fmap {
.area_flags = FMAP_AREA_STATIC,
},
+#ifndef CONFIG_NO_RW_B
/* Firmware B */
{
.area_name = "RW_SECTION_B",
@@ -169,5 +170,6 @@ const struct _ec_fmap {
.area_size = CONFIG_VBLOCK_SIZE,
.area_flags = FMAP_AREA_STATIC,
},
+#endif /* CONFIG_NO_RW_B */
}
};