diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2021-10-29 01:38:51 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-03 11:16:20 +0000 |
commit | 8378d1178ea4384554974aec37eb54547e70e358 (patch) | |
tree | 9fcfa91d5df0f65594f19c4cbe32e08e9cabd1f2 /baseboard | |
parent | cf24279a27b5196f1cf9052d369cacef3ffee730 (diff) | |
download | chrome-ec-8378d1178ea4384554974aec37eb54547e70e358.tar.gz |
brask: Enable recovery key to send event to OS
In order to make the recovery key to trigger the sysrq
and warm reset to the OS, we move the pin to the irq
for receiving the button interrupt and then passing the
key event to the OS via MKBP event.
BUG=b:204512547
BRANCH=None
TEST=1. Press/release recovery button shortly -> sysrq sent
2. Press/hold recovery button at least 4s -> warm reset
Change-Id: I7d86851b12b4771a43985c2891c7e8b9299d32e4
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3251206
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/brask/baseboard.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/baseboard/brask/baseboard.h b/baseboard/brask/baseboard.h index 4b9d8f386a..c07a177327 100644 --- a/baseboard/brask/baseboard.h +++ b/baseboard/brask/baseboard.h @@ -88,7 +88,6 @@ /* Buttons */ #define CONFIG_DEDICATED_RECOVERY_BUTTON -#define CONFIG_DEDICATED_RECOVERY_BUTTON_2 #define CONFIG_EMULATED_SYSRQ #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_IGNORE_LID |