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 /board | |
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 'board')
-rw-r--r-- | board/cerise/board.h | 3 | ||||
-rw-r--r-- | board/damu/board.h | 3 | ||||
-rw-r--r-- | board/hyperdebug/board.h | 3 | ||||
-rw-r--r-- | board/stern/board.h | 3 | ||||
-rw-r--r-- | board/willow/board.h | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/board/cerise/board.h b/board/cerise/board.h index 64b04e35aa..cce105ae27 100644 --- a/board/cerise/board.h +++ b/board/cerise/board.h @@ -19,6 +19,9 @@ #include "baseboard.h" +/* Disable deferred (async) flash protect*/ +#undef CONFIG_FLASH_PROTECT_DEFERRED + #undef CONFIG_CHIPSET_POWER_SEQ_VERSION #define CONFIG_CHIPSET_POWER_SEQ_VERSION 1 diff --git a/board/damu/board.h b/board/damu/board.h index 5700954484..857f5d2390 100644 --- a/board/damu/board.h +++ b/board/damu/board.h @@ -19,6 +19,9 @@ #include "baseboard.h" +/* Disable deferred (async) flash protect*/ +#undef CONFIG_FLASH_PROTECT_DEFERRED + #undef CONFIG_CHIPSET_POWER_SEQ_VERSION #define CONFIG_CHIPSET_POWER_SEQ_VERSION 1 diff --git a/board/hyperdebug/board.h b/board/hyperdebug/board.h index d341a6e570..a0b533b758 100644 --- a/board/hyperdebug/board.h +++ b/board/hyperdebug/board.h @@ -10,6 +10,9 @@ #define CONFIG_LTO +/* Disable deferred (async) flash protect*/ +#undef CONFIG_FLASH_PROTECT_DEFERRED + /* Configure the flash */ #undef CONFIG_RO_SIZE #undef CONFIG_FW_PSTATE_OFF diff --git a/board/stern/board.h b/board/stern/board.h index aa41df9329..0cc8194270 100644 --- a/board/stern/board.h +++ b/board/stern/board.h @@ -19,6 +19,9 @@ #include "baseboard.h" +/* Disable deferred (async) flash protect*/ +#undef CONFIG_FLASH_PROTECT_DEFERRED + #undef CONFIG_CHIPSET_POWER_SEQ_VERSION #define CONFIG_CHIPSET_POWER_SEQ_VERSION 1 diff --git a/board/willow/board.h b/board/willow/board.h index 013f7df035..1772022395 100644 --- a/board/willow/board.h +++ b/board/willow/board.h @@ -19,6 +19,9 @@ #include "baseboard.h" +/* Disable deferred (async) flash protect*/ +#undef CONFIG_FLASH_PROTECT_DEFERRED + #undef CONFIG_CHIPSET_POWER_SEQ_VERSION #define CONFIG_CHIPSET_POWER_SEQ_VERSION 1 |