mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
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>
27 lines
778 B
C
27 lines
778 B
C
/* 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.
|
|
*/
|
|
|
|
/* Keyboard scanner module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_KEYBOARD_SCAN_H
|
|
#define __CROS_EC_KEYBOARD_SCAN_H
|
|
|
|
#include "common.h"
|
|
|
|
/* Initializes the module. */
|
|
int keyboard_scan_init(void);
|
|
|
|
/* Returns non-zero if recovery key was pressed at boot. Used by st32m-based
|
|
* boards only; lm4-based boards use power_recovery_pressed(). */
|
|
int keyboard_scan_recovery_pressed(void);
|
|
|
|
/* clear any saved keyboard state (empty FIFO, etc) */
|
|
void keyboard_clear_state(void);
|
|
|
|
/* Enables/disables keyboard matrix scan. */
|
|
void keyboard_enable_scanning(int enable);
|
|
|
|
#endif /* __CROS_EC_KEYBOARD_SCAN_H */
|