summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-04-17 16:11:51 +0800
committerLouis Yung-Chieh Lo <yjlou@chromium.org>2012-04-18 10:45:28 +0800
commit755a767c2bac52522595ceb9fec5e651244d0449 (patch)
tree611296c9bb8de9464ee16d1592d412408dcdebe5 /include
parent7a33ee53a6dd0fe6f604b8ce63796c510829ece6 (diff)
downloadchrome-ec-755a767c2bac52522595ceb9fec5e651244d0449.tar.gz
Fixed the bug that reboot_ec resets the keyboard state to disabled.
The reboot_ec command could warm boot the EC while the host is still running. However, this resets the internal state so that the keyboard module is disabled on the EC side. Check the reset cause during the keyboard init code. If it is wrm boot, enable the keyboard (assume the host is on). BUG=chrome-os-partner:9102 TEST=on link 1.0 % ectool version Firmware copy: RO % ectool reboot_ec RO the keyboard keeps working. Change-Id: I0009c561e2cd88789e50f9129b494538e50ee00e
Diffstat (limited to 'include')
-rw-r--r--include/keyboard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/keyboard.h b/include/keyboard.h
index f715ab2bba..bc5aaadfe9 100644
--- a/include/keyboard.h
+++ b/include/keyboard.h
@@ -26,7 +26,7 @@ enum scancode_set_list {
/* The initialize code of keyboard lib. Called by core main. */
-enum ec_error_list keyboard_init(void);
+int keyboard_init(void);
/* Called by keyboard scan code once any key state change (after de-bounce),