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
This commit is contained in:
Vincent Palatin
2012-05-22 21:37:19 +00:00
parent 43e26da794
commit d819f6cee4

View File

@@ -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)