diff options
author | Furquan Shaikh <furquan@chromium.org> | 2016-11-03 23:39:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-08 20:30:07 -0800 |
commit | 2fc7ba9df19d941fcd7b858d5ea6f3eb2b2398bd (patch) | |
tree | 01eb2aa25245695df6d37aa17c286d719e10fbfd /include/keyboard_config.h | |
parent | bf4e1db093d7051491001e59195d30a915785066 (diff) | |
download | chrome-ec-2fc7ba9df19d941fcd7b858d5ea6f3eb2b2398bd.tar.gz |
common: Add new recovery mode button combination
This adds new key combination (Left_Shift+Esc+Refresh+Power) that triggers
recovery mode by setting a new host event
EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT. This host event can be used
whenever user wants to request entry into recovery mode by
reinitializing all the hardware state (e.g. memory retraining).
BUG=chrome-os-partner:56643,chrome-os-partner:59352
BRANCH=None
TEST=Verified that device retrains memory in recovery mode
with (Left_Shift+Esc+Refresh+Power) on reef.
Change-Id: I2e08997acfd9e22270b8ce7a5b589cd5630645f8
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/407827
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/keyboard_config.h')
-rw-r--r-- | include/keyboard_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/keyboard_config.h b/include/keyboard_config.h index 6cb1b53a52..6e6fcef7f8 100644 --- a/include/keyboard_config.h +++ b/include/keyboard_config.h @@ -60,5 +60,8 @@ #define KEYBOARD_ROW_KEY_2 6 #define KEYBOARD_MASK_KEY_2 KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_KEY_2) #define KEYBOARD_MASK_KSI2 KEYBOARD_ROW_TO_MASK(2) +#define KEYBOARD_COL_LEFT_SHIFT 7 +#define KEYBOARD_ROW_LEFT_SHIFT 5 +#define KEYBOARD_MASK_LEFT_SHIFT KEYBOARD_ROW_TO_MASK(KEYBOARD_ROW_LEFT_SHIFT) #endif /* __CROS_EC_KEYBOARD_CONFIG_H */ |