From 77d86a6161e9388c48a607c654844ec2798a017d Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Thu, 21 May 2020 22:14:25 -0700 Subject: honeybuns: Increase flash size to work with RO only We don't have enough flash space on to do a full RO + RW image. This CL simply adjusts the flash size define from 128k to 256k and only the RO image is only being used for development and HW verification. Note also that at this stage there is no support for RO -> RW jump other than using EC console command, so RO is the only image being executed. BUG=b:167462264 BRANCH=None TEST=make -j BOARD=quiche is successful. Signed-off-by: Scott Collyer Change-Id: Iec062f9f3be966c0653cbdafe72f5a160351cf07 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2213839 Commit-Queue: Scott Collyer Tested-by: Scott Collyer Reviewed-by: Diana Z --- chip/stm32/config-stm32g41xb.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chip') diff --git a/chip/stm32/config-stm32g41xb.h b/chip/stm32/config-stm32g41xb.h index 1daca3c4a7..ab8642b9e6 100644 --- a/chip/stm32/config-stm32g41xb.h +++ b/chip/stm32/config-stm32g41xb.h @@ -16,7 +16,12 @@ * The minimum write size for STM32G4 is 8 bytes. Cros-EC does not support * PSTATE in single bank memories with a write size > 4 bytes. */ -#define CONFIG_FLASH_SIZE (128 * 1024) +/* + * TODO(b/167462264): This is a temporary change to allow for platform bringup + * without being constrained by flash space issue. Currently only using RO image + * flashed with STM32 debugger. + */ +#define CONFIG_FLASH_SIZE (256 * 1024) #define CONFIG_FLASH_WRITE_SIZE 0x0004 #define CONFIG_FLASH_BANK_SIZE (2 * 1024) #define CONFIG_FLASH_ERASE_SIZE CONFIG_FLASH_BANK_SIZE -- cgit v1.2.1