mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 14:01:54 +00:00
Tristage all columns as soon as possible right after the power button is pressed. This can avoid the silego chip to reset the EC. Resume the interrupt mode after power button is released so that the deasserted columns doesn't trigger EC reset. Also change some function names for export. BUG=chrome-os-partner:7486 TEST= press g first, then power button. repeat many times. system is not rebooted. press power button first, then g. repeat many times. system is not rebooted. ESC+power is still reseting system. The long press power button still shutdowns system. Change-Id: Ie5dec20ec3d3c4ffbd4acf5a4dd7f63eec38af56
28 lines
693 B
C
28 lines
693 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. */
|
|
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_KEYBOARD_SCAN_H */
|