diff options
author | Edward Hill <ecgh@chromium.org> | 2018-05-16 17:28:27 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-16 22:49:42 -0700 |
commit | ed45aba4bd123325ea8c97220c5f45ed2326b311 (patch) | |
tree | 3a495125130e88282131b18f82d7e7796fe40517 /board/grunt | |
parent | 0f41a73dbf9ac5ec569ab53600b7b8e95453a284 (diff) | |
download | chrome-ec-ed45aba4bd123325ea8c97220c5f45ed2326b311.tar.gz |
keyboard_scan: Add refresh and power button boot key options
Make Esc+Refresh+Power on Grunt enter Recovery Mode.
If Power is released fast:
[0.045303 KB init state: -- 02 08 -- -- -- -- -- -- -- -- -- --]
Add CONFIG_KEYBOARD_IGNORE_REFRESH_BOOT_KEY to handle this case.
If Power is held longer:
[0.045448 KB init state: 08 0a 08 08 08 -- 08 -- 08 08 -- 08 08]
Add CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI3 to handle this case.
BUG=b:79758966
BRANCH=none
TEST=Esc+Refresh+Power gives recovery screen on Grunt
Change-Id: I43a7d485535ff7b0d9bfce59f28c0049ee989818
Signed-off-by: Edward Hill <ecgh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1063032
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Diffstat (limited to 'board/grunt')
-rw-r--r-- | board/grunt/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/grunt/board.h b/board/grunt/board.h index dd6d3c7886..364527226b 100644 --- a/board/grunt/board.h +++ b/board/grunt/board.h @@ -88,6 +88,9 @@ #define CONFIG_KEYBOARD_BOARD_CONFIG #define CONFIG_KEYBOARD_COL2_INVERTED #define CONFIG_KEYBOARD_PROTOCOL_8042 +#define CONFIG_KEYBOARD_REFRESH_ROW3 +#define CONFIG_KEYBOARD_IGNORE_REFRESH_BOOT_KEY +#define CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI3 #define CONFIG_USB_POWER_DELIVERY #define CONFIG_CMD_PD_CONTROL |