From c7d12f1165d29f249411c5f9c7d21b6e5e56f262 Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Wed, 9 Jun 2021 11:42:37 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55365 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- .../google/guybrush/variants/baseboard/include/baseboard/ec.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainboard') 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) \ -- cgit v1.2.3