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:
Louis Yung-Chieh Lo
2012-03-13 15:02:55 +08:00
parent 386f4618f3
commit 20fcd29d42

View File

@@ -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) {