diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2012-03-13 15:02:55 +0800 |
---|---|---|
committer | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2012-03-14 12:24:46 +0800 |
commit | 20fcd29d424fdaefb30dff61cd4857d9ece3ee24 (patch) | |
tree | 2af836ba3f2415bdc998d70cc60e10fba811ca69 | |
parent | 386f4618f38e47b3f38e99b47fb2dd35ce670c04 (diff) | |
download | chrome-ec-20fcd29d424fdaefb30dff61cd4857d9ece3ee24.tar.gz |
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
-rw-r--r-- | common/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index e18a7603e9..aed4b0fbe1 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -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) { |