summaryrefslogtreecommitdiff
path: root/include/power_button.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-06-04 12:50:43 -0700
committerGerrit <chrome-bot@google.com>2012-06-04 17:07:15 -0700
commit4568bc7dbdd51c062d8c3adfa38ff6f070f88a40 (patch)
tree061801d95ce8f06935f933dcb58d0e739370f83d /include/power_button.h
parent5edb0c5d979a01b47571e29686b7f26d50b613ea (diff)
downloadchrome-ec-4568bc7dbdd51c062d8c3adfa38ff6f070f88a40.tar.gz
Release keyboard recovery button on next power-on
Keyboard recovery used to persist until the next time the EC was reset. It should release the next time the user turns on the system via the lid or power button. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:10034 TEST=manual 1. power system on normally. not in recovery. 2. press Power+Esc+Refresh. System turns on into recovery. 3. shut system down 4. power system on with lid-open. System boots normally. 5. repeat steps 2-3, then power system on with power button. System boots normally. Change-Id: I455c7191d128614629c50ba27d7ef977e414fe90 Reviewed-on: https://gerrit.chromium.org/gerrit/24409 Commit-Ready: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/power_button.h')
-rw-r--r--include/power_button.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h
index 3bdb8a639d..a0bb85635e 100644
--- a/include/power_button.h
+++ b/include/power_button.h
@@ -25,4 +25,11 @@ int power_ac_present(void);
* signal from the GPIO. */
int power_lid_open_debounced(void);
+/* Return non-zero if the recovery button is pressed. */
+int power_recovery_pressed(void);
+
+/* Set the state of the recovery button. Called by the keyboard scanner at
+ * init if the keyboard recovery combo was pressed. */
+void power_set_recovery_pressed(int pressed);
+
#endif /* __CROS_EC_POWER_BUTTON_H */