diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-02-14 10:51:24 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-02-14 10:51:24 -0800 |
commit | 805c89652f8ef2e5ecf31529967c3d6ed39237b7 (patch) | |
tree | 5c46d6d81449aa8b3549234132f6ce538a10f0f6 /include | |
parent | 1dd47c8ef3d41b175a0d04f661eca56754c1a2b4 (diff) | |
download | chrome-ec-805c89652f8ef2e5ecf31529967c3d6ed39237b7.tar.gz |
Check for recovery key sequence at init
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7451
TEST=hold down no keys; KB init state should be blank
hold down reload (F3); KB init should indicate recovery key pressed
hold down F3 + ESC; same
hold down F3 + F2 + ESC; KB init should NOT indicate recovery key pressed
Change-Id: I0fbf15407b20669396f667e6499ee5a9d545a4d5
Diffstat (limited to 'include')
-rw-r--r-- | include/keyboard_scan.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h index 8bc10c2c17..31341333c5 100644 --- a/include/keyboard_scan.h +++ b/include/keyboard_scan.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -13,4 +13,7 @@ /* Initializes the module. */ int keyboard_scan_init(void); +/* Returns non-zero if recovery key was pressed at boot. */ +int keyboard_scan_recovery_pressed(void); + #endif /* __CROS_KEYBOARD_SCAN_H */ |