diff options
author | Duncan Laurie <dlaurie@google.com> | 2018-03-23 22:33:17 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-26 02:07:23 -0700 |
commit | 245b494e145d6a928aa277670432d396862698f9 (patch) | |
tree | 731e118d9d23425e15dde7166c41ffab578585c1 /include/keyboard_config.h | |
parent | 3e12d9af2077ce33e773ef538cc0ee975d2d14d7 (diff) | |
download | chrome-ec-245b494e145d6a928aa277670432d396862698f9.tar.gz |
keyboard: Add config option for refresh key row
The keyboards that have an assistant key also move the row that
the refresh key is on from 2 to 3. The row is hardcoded and
used by the early boot key detection code to determine if
boot keys should be honored.
The fallout from not having the right refresh row defined was
not seen on Eve because that board has a different quirk where
it does not distinguish reset-pin vs power-on reset types so
the test in check_boot_keys() was not failing.
BUG=b:76232955
BRANCH=none
TEST=manual testing on Eve board
Change-Id: I5b94b4e32024afa1768bdf371a7eb951753014e8
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/979574
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'include/keyboard_config.h')
-rw-r--r-- | include/keyboard_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/keyboard_config.h b/include/keyboard_config.h index 6e6fcef7f8..b4aa21ad99 100644 --- a/include/keyboard_config.h +++ b/include/keyboard_config.h @@ -33,7 +33,11 @@ #define KEYBOARD_ROW_LEFT_ALT 6 #define KEYBOARD_MASK_LEFT_ALT KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_LEFT_ALT) #define KEYBOARD_COL_REFRESH 2 +#ifdef CONFIG_KEYBOARD_REFRESH_ROW3 +#define KEYBOARD_ROW_REFRESH 3 +#else #define KEYBOARD_ROW_REFRESH 2 +#endif #define KEYBOARD_MASK_REFRESH KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_REFRESH) #define KEYBOARD_COL_RIGHT_ALT 10 #define KEYBOARD_ROW_RIGHT_ALT 0 |