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 /test | |
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 'test')
-rw-r--r-- | test/kb_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/kb_scan.c b/test/kb_scan.c index 926b0a27df..b9dd661224 100644 --- a/test/kb_scan.c +++ b/test/kb_scan.c @@ -350,12 +350,12 @@ static int lid_test(void) static int test_check_boot_esc(void) { - TEST_CHECK(keyboard_scan_get_boot_key() == BOOT_KEY_ESC); + TEST_CHECK(keyboard_scan_get_boot_keys() == BOOT_KEY_ESC); } static int test_check_boot_down(void) { - TEST_CHECK(keyboard_scan_get_boot_key() == BOOT_KEY_DOWN_ARROW); + TEST_CHECK(keyboard_scan_get_boot_keys() == BOOT_KEY_DOWN_ARROW); } void test_init(void) |