diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-04-15 19:49:27 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-20 05:20:40 +0000 |
commit | c28a0f20324ce81d1a67aaf9bfe824d47cab3a60 (patch) | |
tree | 7d27b0a78cb0dd67185116a527ca7fd613941a19 | |
parent | 183268f86a40683993762264f06673d96906e0a7 (diff) | |
download | chrome-ec-c28a0f20324ce81d1a67aaf9bfe824d47cab3a60.tar.gz |
zephyr: lazor: add the write-protection switch interrupt
Add the write-protection switch interrupt. The switch state can be
updated in time.
BRANCH=None
BUG=b:182398910
TEST=Changed the write-protection switch in Cr50 console.
Checked the interrupts were triggered and showed the messages:
[225.050900 SW 0x05] # The WP bitmask is 0x4.
[230.853700 SW 0x01]
Change-Id: I8bd801ac872b9f7b91895e504069f91921c9592f
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2831051
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2839201
Tested-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | zephyr/projects/trogdor/lazor/include/gpio_map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/trogdor/lazor/include/gpio_map.h b/zephyr/projects/trogdor/lazor/include/gpio_map.h index 0d6211c6fb..e47ad980ac 100644 --- a/zephyr/projects/trogdor/lazor/include/gpio_map.h +++ b/zephyr/projects/trogdor/lazor/include/gpio_map.h @@ -27,6 +27,7 @@ #define EC_CROS_GPIO_INTERRUPTS \ GPIO_INT(GPIO_AC_PRESENT, GPIO_INT_EDGE_BOTH, extpower_interrupt) \ GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) \ + GPIO_INT(GPIO_WP_L, GPIO_INT_EDGE_BOTH, switch_interrupt) \ GPIO_INT(GPIO_POWER_BUTTON_L, GPIO_INT_EDGE_BOTH, \ power_button_interrupt) \ GPIO_INT(GPIO_VOLUME_DOWN_L, GPIO_INT_EDGE_BOTH, button_interrupt) \ |