diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-12 13:41:01 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-07-12 18:21:32 -0700 |
commit | 89049421a6f2681f517373338a0f601beae7c737 (patch) | |
tree | 84e58710d77d00c1a72680a15e5cda860f2ccc95 /include/ec_commands.h | |
parent | 02d820786c2fda890411494ddbc9e6d2ddf90f32 (diff) | |
download | chrome-ec-89049421a6f2681f517373338a0f601beae7c737.tar.gz |
Add second copy of event state
U-boot and ectool need this to see what events have occurred, in a way
which doesn't conflict with ACPI/SCI/SMI.
BUG=chrome-os-partner:11172
TEST=manual
- boot EC
- look at event set / event clear debug output; that's for copy A
- from ec console,
hostevent -> events=0, events-B = 0x2088
hostevent clearb 0x2000 -> events-B = 0x88
Change-Id: If842b157914426df593d82af2bfb08a923caa34b
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27317
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index ab9d83833b..72dac87567 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -766,6 +766,7 @@ struct ec_response_host_event_mask { } __packed; /* These all use ec_response_host_event_mask */ +#define EC_CMD_HOST_EVENT_GET_B 0x87 #define EC_CMD_HOST_EVENT_GET_SMI_MASK 0x88 #define EC_CMD_HOST_EVENT_GET_SCI_MASK 0x89 #define EC_CMD_HOST_EVENT_GET_WAKE_MASK 0x8d @@ -775,6 +776,7 @@ struct ec_response_host_event_mask { #define EC_CMD_HOST_EVENT_SET_SCI_MASK 0x8b #define EC_CMD_HOST_EVENT_CLEAR 0x8c #define EC_CMD_HOST_EVENT_SET_WAKE_MASK 0x8e +#define EC_CMD_HOST_EVENT_CLEAR_B 0x8f /*****************************************************************************/ /* GPIO switch commands */ |