From d819f6cee4f212d95e375a5fda8a08725909b89b Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Tue, 22 May 2012 21:37:19 +0000 Subject: [PATCH] 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 BUG=chrome-os-partner:8865 TEST=On Snow, flashrom -p internal:bus=lpc -i EC_RW -w ec.bin Change-Id: Id015af512f072efce5fcafc5a630845c5d9600bb --- chip/stm32/config-stm32f100.h | 4 ++++ 1 file changed, 4 insertions(+) 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)