summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-07-12 15:26:30 -0700
committerRandall Spangler <rspangler@chromium.org>2012-07-12 18:23:36 -0700
commit8c701a7100cc63d664d6061651f8888bbe51f9e8 (patch)
tree9ebc9211689dfd6bc6038fd382a6fcd89f458334 /include/ec_commands.h
parenta3701639fc805ef81c8f38e9522f33b1075c3ef5 (diff)
downloadchrome-ec-8c701a7100cc63d664d6061651f8888bbe51f9e8.tar.gz
Add keyboard recovery event
This is set when the EC boots and sees the recovery key combo. This is preferable to the memmap'd keyboard recovery switch, which the host has no way of clearing. The idea is that the host RO firmware reads this event and sets the recovery reason. I will be removing the memmap'd keyboard recovery switch once U-boot and coreboot check this new event. BUG=chrome-os-partner:10034 TEST=manual 1. power+esc+refresh; should see this even in EC log [0.000838 event set 0x00004000] (time of event may vary) 2. reboot EC; should NOT see the event Change-Id: Id0672749f63c5022624a72ec91d30dcadfea5ef8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/27328
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 72dac87567..4f85aeb9ab 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -192,6 +192,8 @@ enum host_event_code {
* determine when the EC is ready to accept subsequent commands.
*/
EC_HOST_EVENT_INTERFACE_READY = 14,
+ /* Keyboard recovery combo has been pressed */
+ EC_HOST_EVENT_KEYBOARD_RECOVERY = 15,
/*
* The high bit of the event mask is not used as a host event code. If
* it reads back as set, then the entire event mask should be