diff options
author | Rob Barnes <robbarnes@google.com> | 2021-06-09 11:42:37 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-06-11 07:37:02 +0000 |
commit | c7d12f1165d29f249411c5f9c7d21b6e5e56f262 (patch) | |
tree | 7d16951a0f50b0dabde68adba66c8f4412aa6ace /src/mainboard/google/guybrush/variants/baseboard | |
parent | e689378d883c31ee367285340fe5780842cd912a (diff) |
mb/google/guybrush: Add EC_HOST_EVENT_HANG_DETECT to wake mask
Add EC_HOST_EVENT_HANG_DETECT to S3/S5/S0ix wake mask. This event is
sent when the EC detects the AP didn't fully enter a sleep state.
BUG=b:186571086
TEST=Trigger hang detect while AP is in S0ix, AP wakes from S0ix
Change-Id: I09ccf609fc453c19b4fb1ddaa5a0c86d7a85aad1
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55365
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/google/guybrush/variants/baseboard')
-rw-r--r-- | src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h index 0b51eb28ac..d73dc00d42 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h +++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h @@ -26,12 +26,13 @@ #define MAINBOARD_EC_SMI_EVENTS (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED)) -/* EC can wake from S5 with lid or power button */ +/* EC can wake from S5 with lid, power button or hang detection */ #define MAINBOARD_EC_S5_WAKE_EVENTS \ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) \ - | EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) + | EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON) \ + | EC_HOST_EVENT_MASK(EC_HOST_EVENT_HANG_DETECT)) -/* EC can wake from S3 with lid, power button or mode change event */ +/* EC can wake from S3 with lid, power button, mode change event, or hang detection */ #define MAINBOARD_EC_S3_WAKE_EVENTS \ (MAINBOARD_EC_S5_WAKE_EVENTS | EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) \ | EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) \ |