diff options
author | Firas Sammoura <fsammoura@google.com> | 2023-03-13 21:20:36 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-03 01:44:52 +0000 |
commit | 7f21c475bb679788a0e04d71780eac8cc78ac5f5 (patch) | |
tree | af8b07434460c5d3df112d95446edc8ee75517a8 /include/config.h | |
parent | 200d74d0f3ad8e8f96c112e7416ed2414d55fa76 (diff) | |
download | chrome-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 'include/config.h')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index b354956bb5..a7b211699e 100644 --- a/include/config.h +++ b/include/config.h @@ -1810,6 +1810,9 @@ */ #define CONFIG_COMMON_RUNTIME +/* Allow deferred (async) flash protect*/ +#define CONFIG_FLASH_PROTECT_DEFERRED + /* Provide common core code to handle the operating system timers. */ #define CONFIG_COMMON_TIMER |