diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-06-11 15:42:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-15 03:18:00 +0000 |
commit | a14b96c8c6a045bdd80dfb690cd8026fb5bb8fcd (patch) | |
tree | b09d00372b549fc86492bdf57bfe28d16e6f4528 /baseboard/asurada | |
parent | 2c58e541897163dcb879a3755884d193fb0011a9 (diff) | |
download | chrome-ec-a14b96c8c6a045bdd80dfb690cd8026fb5bb8fcd.tar.gz |
asurada: enable HOST_SLEEP_STATE to smooth suspend trasnsition
MT8192 previously didn't enable the command due to it already has
AP_IN_SLEEP_L, but we found that if we don't have the command,
EC might have rare chance to interrupt AP with hostevent when AP
in transition to S3, and cause the suspend failure.
This CL enables CONFIG_POWER_TRACK_HOST_SLEEP_STATE so the EC is
able to handle the AP's hint to disable non-wakeup hostevent when
it's transisting to S3.
BUG=b:186709406
TEST=ensure EC received the AP's note
BRANCH=asurada
Change-Id: I7a2a7eefc7620817ca446fd24370375130daf6be
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954984
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'baseboard/asurada')
-rw-r--r-- | baseboard/asurada/baseboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/baseboard/asurada/baseboard.h b/baseboard/asurada/baseboard.h index 7a485c0005..d166b80f93 100644 --- a/baseboard/asurada/baseboard.h +++ b/baseboard/asurada/baseboard.h @@ -26,6 +26,8 @@ #define CONFIG_CHIPSET_MT8192 #define CONFIG_EXTPOWER_GPIO #define CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC +#define CONFIG_POWER_SLEEP_FAILURE_DETECTION +#define CONFIG_POWER_TRACK_HOST_SLEEP_STATE /* Chipset */ #define CONFIG_CMD_AP_RESET_LOG @@ -169,6 +171,7 @@ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) | \ EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) | \ EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) | \ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_HANG_DETECT) | \ EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE) | \ EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) |