mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
Add keyboard controller reset command.
To handle outp(0x64, 0xfe) instruction from host. BUG=chrome-os-partner:8464,chrome-os-partner:8397 TEST= build on bds and l*. tested on proto 0.5. Change-Id: I8cb3a870b2a5c7a711dc911ba44e154813e9f123
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "timer.h"
|
||||
#include "uart.h"
|
||||
#include "util.h"
|
||||
#include "x86_power.h"
|
||||
|
||||
|
||||
#define KEYBOARD_DEBUG 1
|
||||
@@ -499,6 +500,12 @@ int handle_keyboard_command(uint8_t command, uint8_t *output) {
|
||||
data_port_state = STATE_SEND_TO_MOUSE;
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_TASK_X86POWER
|
||||
case I8042_SYSTEM_RESET:
|
||||
x86_power_reset();
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
if (command >= I8042_READ_CTL_RAM &&
|
||||
command <= I8042_READ_CTL_RAM_END) {
|
||||
|
||||
Reference in New Issue
Block a user