From dd9b5de765fd683a2e25cbfe83925d71fe524be2 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Thu, 22 Jul 2021 16:41:59 -0700 Subject: cbi: Add CONFIG_EEPROM_CBI_WP This commit adds the config option, CONFIG_EEPROM_CBI_WP. It is to be defined when the EC directly controls the CBI EEPROM WP signal. The EC will set the WP according to the result of `system_is_locked()`. Note that once the WP is set, the EC must be reset via EC_RST_ODL in order for the WP to become unset. This is enabled by the accompanying hardware. BUG=b:181769483 BRANCH=None TEST=`make -j buildall` Signed-off-by: Aseda Aboagye Change-Id: If490594ab4dd24af98119b01299215b997913b66 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3046412 Tested-by: Aseda Aboagye Auto-Submit: Aseda Aboagye Reviewed-by: Daisuke Nojiri Commit-Queue: Aseda Aboagye --- zephyr/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zephyr/Kconfig') diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 2440fd3773..a24996e2f6 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -141,6 +141,14 @@ config PLATFORM_EC_BYPASS_CBI_EEPROM_WP_CHECK When defined, ectool can be used to reprogram all CBI fields, regardless of the state of the hardware write protect. +config PLATFORM_EC_EEPROM_CBI_WP + bool "EC can independently set the CBI EEPROM WP signal" + help + Define this if the EC can independently set the CBI EEPROM WP + signal. The accompanying hardware must ensure that the CBI WP gets + latched and is only reset when EC_RST_ODL is asserted. + select PLATFORM_EC_BYPASS_CBI_EEPROM_WP_CHECK + choice PLATFORM_EC_CBI_STORAGE_TYPE prompt "Select CBI storage Type" optional -- cgit v1.2.1