diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-22 21:37:19 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-22 21:42:35 +0000 |
commit | d819f6cee4f212d95e375a5fda8a08725909b89b (patch) | |
tree | 8cb2752a827e4b00f47dd1cf6af55239dae29d5a | |
parent | 43e26da7940633bca4b6cfcb0ff8a541375506f9 (diff) | |
download | chrome-ec-d819f6cee4f212d95e375a5fda8a08725909b89b.tar.gz |
snow: ensure we have proper size in the FMAP
The size of the RW partition is size of RW-A + size of RW-B.
When B is de-activated, we need to nullify its size to get the correct
total size.
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: Id015af512f072efce5fcafc5a630845c5d9600bb
-rw-r--r-- | chip/stm32/config-stm32f100.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/config-stm32f100.h b/chip/stm32/config-stm32f100.h index 750465a250..552aa7ac58 100644 --- a/chip/stm32/config-stm32f100.h +++ b/chip/stm32/config-stm32f100.h @@ -27,7 +27,11 @@ #define CONFIG_SECTION_A_OFF CONFIG_FW_A_OFF #define CONFIG_SECTION_A_SIZE CONFIG_FW_A_SIZE #define CONFIG_SECTION_B_OFF CONFIG_FW_B_OFF +#ifdef CONFIG_NO_RW_B +#define CONFIG_SECTION_B_SIZE 0 +#else /* CONFIG_NO_RW_B */ #define CONFIG_SECTION_B_SIZE CONFIG_FW_B_SIZE +#endif /* CONFIG_NO_RW_B */ /* no keys for now */ #define CONFIG_VBOOT_ROOTKEY_OFF (CONFIG_FW_RO_OFF + CONFIG_FW_RO_SIZE) |