summaryrefslogtreecommitdiff
path: root/zephyr/shim
diff options
context:
space:
mode:
authorJun Lin <CHLin56@nuvoton.com>2021-04-12 16:31:04 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-12 17:44:56 +0000
commitf334d6f9d4116eeb4999293108abf8fe147d6f83 (patch)
tree95b1171cbbfd2d34ae4a8a23da95df6a2947688d /zephyr/shim
parente07d94a3c8a209d6ae848cd8412ccb9dac397253 (diff)
downloadchrome-ec-f334d6f9d4116eeb4999293108abf8fe147d6f83.tar.gz
Zephyr: cros_flash: change the flash erase size from 4K to 64K
This CL aligns the ECOS's setting for flash erase size (i.e. 64K.) With this change, the time to erase 256KB RW in Zephyr is close to that in ECOS. BRANCH=none BUG=b:184981080 TEST= Before this CL: flasherase 0x40000 0x40000 Erasing 262144 bytes at 0x40000... t = 1787100 With this CL: flasherase 0x40000 0x40000 Erasing 262144 bytes at 0x40000... t = 414700 Signed-off-by: Jun Lin <CHLin56@nuvoton.com> Change-Id: I11478f92641cd1110177c552bd7d93276c94f381 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821111 Tested-by: CH Lin <chlin56@nuvoton.com> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim')
-rw-r--r--zephyr/shim/include/config_chip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index c3e675b008..817adac338 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -300,7 +300,7 @@
#define CONFIG_MAPPED_STORAGE_BASE 0x64000000
#define CONFIG_FLASH_WRITE_SIZE 0x1 /* minimum write size */
#define CONFIG_FLASH_WRITE_IDEAL_SIZE 256 /* one page size for write */
-#define CONFIG_FLASH_ERASE_SIZE 0x1000
+#define CONFIG_FLASH_ERASE_SIZE 0x10000
#define CONFIG_FLASH_BANK_SIZE CONFIG_FLASH_ERASE_SIZE
#define CONFIG_EC_PROTECTED_STORAGE_OFF CONFIG_PLATFORM_EC_PROTECTED_STORAGE_OFF
#define CONFIG_EC_PROTECTED_STORAGE_SIZE \