summaryrefslogtreecommitdiff
path: root/zephyr/shim
diff options
context:
space:
mode:
authorFiras Sammoura <fsammoura@google.com>2023-03-13 21:20:36 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-03 01:44:52 +0000
commit7f21c475bb679788a0e04d71780eac8cc78ac5f5 (patch)
treeaf8b07434460c5d3df112d95446edc8ee75517a8 /zephyr/shim
parent200d74d0f3ad8e8f96c112e7416ed2414d55fa76 (diff)
downloadchrome-ec-7f21c475bb679788a0e04d71780eac8cc78ac5f5.tar.gz
ec: Add async FLASH_PROTECT
Create an async FLASH_PROTECT command that is enabled when CONFIG_FLASH_PROTECT_DEFERRED is defined. Disable this configuration for boards cerise, damu, stern,cand willow where there is no flash memory available. Disable this configuration for board hyperdebug where the deferred implementation in not possible because CONFIG_COMMON_RUNTIME is undefined. Enable this configuration otherwise in both the ec and zephyr configuration files. BRANCH=nocturne BUG=b:116396469 TEST=make buildall -j Change-Id: I0605cc600841ec2ec3c1dd2d3d3598b28d20ffcb Signed-off-by: Firas Sammoura <fsammoura@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4335413 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'zephyr/shim')
-rw-r--r--zephyr/shim/include/config_chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index b46ca76cb1..153b150293 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -132,6 +132,11 @@
#define CONFIG_CHIPSET_METEORLAKE
#endif
+#undef CONFIG_FLASH_PROTECT_DEFERRED
+#ifdef CONFIG_PLATFORM_EC_FLASH_PROTECT_DEFERRED
+#define CONFIG_FLASH_PROTECT_DEFERRED
+#endif
+
#undef CONFIG_THROTTLE_AP
#ifdef CONFIG_PLATFORM_EC_THROTTLE_AP
#define CONFIG_THROTTLE_AP