diff options
author | Aseda Aboagye <aaboagye@google.com> | 2021-07-22 16:41:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-29 20:36:11 +0000 |
commit | dd9b5de765fd683a2e25cbfe83925d71fe524be2 (patch) | |
tree | a7967998b1d539c49256008a4eafa9f9777740c0 /board/host | |
parent | 5e07ac82ecf51aff07a8def8a4bae1330c426b22 (diff) | |
download | chrome-ec-dd9b5de765fd683a2e25cbfe83925d71fe524be2.tar.gz |
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 <aaboagye@google.com>
Change-Id: If490594ab4dd24af98119b01299215b997913b66
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3046412
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r-- | board/host/gpio.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/host/gpio.inc b/board/host/gpio.inc index c567aa0277..ce69385259 100644 --- a/board/host/gpio.inc +++ b/board/host/gpio.inc @@ -34,3 +34,5 @@ GPIO(USB_C0_DISCHARGE, PIN(0, 15), 0) GPIO(I2C_SCL, PIN(0, 16), GPIO_INPUT) GPIO(I2C_SDA, PIN(0, 17), GPIO_INPUT) + +GPIO(EC_CBI_WP, PIN(0, 18), GPIO_OUT_LOW) |