From 20fcd29d424fdaefb30dff61cd4857d9ece3ee24 Mon Sep 17 00:00:00 2001 From: Louis Yung-Chieh Lo Date: Tue, 13 Mar 2012 15:02:55 +0800 Subject: [PATCH] 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 --- common/keyboard.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) {