From 86295f979ec39b8b522e75bb507830a57bf17dcc Mon Sep 17 00:00:00 2001 From: Dino Li Date: Mon, 21 Feb 2022 10:51:36 +0800 Subject: zephyr: it8xxx2: use 768KB space from flash This change was made to use more space from flash. Because Nereid image is almost out of space (On previous test, the configuration still able to pass software sync) BRANCH=none BUG=b:220273249 TEST=Build Nereid with enable CONFIG_PLATFORM_EC_BATTERY_CUT_OFF. Verified sysjump command on Krabby. Signed-off-by: Dino Li Change-Id: I15445caa9cbf974128b4413d430569e844ef059d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3476659 Tested-by: Scott Chao Reviewed-by: Peter Marheine Commit-Queue: Peter Marheine --- zephyr/shim/include/config_chip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zephyr/shim') diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 4366229a61..70926344c8 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -537,10 +537,10 @@ #ifdef CONFIG_PLATFORM_EC_FLASH_SIZE_BYTES /* * Flash size of IT81202 is 1MB. - * We use only half space of flash to save time of erasing RW image from flash. + * We use only 3/4 space of flash to save time of erasing RW image from flash. */ #ifdef CONFIG_SOC_IT8XXX2 -#define CONFIG_FLASH_SIZE_BYTES (CONFIG_PLATFORM_EC_FLASH_SIZE_BYTES / 2) +#define CONFIG_FLASH_SIZE_BYTES (CONFIG_PLATFORM_EC_FLASH_SIZE_BYTES * 3 / 4) #else #define CONFIG_FLASH_SIZE_BYTES CONFIG_PLATFORM_EC_FLASH_SIZE_BYTES #endif -- cgit v1.2.1