diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2018-05-02 17:12:49 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-08 14:16:15 +0000 |
commit | a29d234b2477f8e5b74322551d2c21ff1a759de3 (patch) | |
tree | fdfffa6233f3c9cf03f0dfa871e36d4f3ab73c66 /src/ec/google/chromeec | |
parent | 29c657f4c6c24899579dfda4de0ca553fde08c51 (diff) | |
download | coreboot-a29d234b2477f8e5b74322551d2c21ff1a759de3.tar.xz |
ec/google/chromeec: add config for wake event types
Avoids array overflow
Change-Id: Ia49a782ba6729c740e3b91c500120132983f6b3c
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/25992
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google/chromeec')
-rw-r--r-- | src/ec/google/chromeec/ec.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 5ce3f68823..72ca2408a9 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -69,6 +69,18 @@ static const struct { EC_CMD_HOST_EVENT_SET_WAKE_MASK, INVALID_HCMD, EC_CMD_HOST_EVENT_GET_WAKE_MASK, }, + [EC_HOST_EVENT_LAZY_WAKE_MASK_S0IX] = { + EC_CMD_HOST_EVENT_SET_WAKE_MASK, INVALID_HCMD, + EC_CMD_HOST_EVENT_GET_WAKE_MASK, + }, + [EC_HOST_EVENT_LAZY_WAKE_MASK_S3] = { + EC_CMD_HOST_EVENT_SET_WAKE_MASK, INVALID_HCMD, + EC_CMD_HOST_EVENT_GET_WAKE_MASK, + }, + [EC_HOST_EVENT_LAZY_WAKE_MASK_S5] = { + EC_CMD_HOST_EVENT_SET_WAKE_MASK, INVALID_HCMD, + EC_CMD_HOST_EVENT_GET_WAKE_MASK, + }, }; void log_recovery_mode_switch(void) |