diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2020-11-20 16:19:36 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-20 09:32:07 +0000 |
commit | d0530ca42969435e91627977267c517e26349c97 (patch) | |
tree | 736d06fe0648127bba23a682863156c23a1aae31 /board | |
parent | e2cbd8277107164b0ed2c5180ddfd4418d62cb5c (diff) | |
download | chrome-ec-d0530ca42969435e91627977267c517e26349c97.tar.gz |
asurada: resume from S3 when AC connect/disconnect
This is a new device requirementa.
BUG=b:172361448
TEST=ensure AP resume when AC connect and disconnect
BRANCH=none
Change-Id: I2da0565fbef43a553346ee497b7791bcbd6a10b4
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2550120
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/asurada/board.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/board/asurada/board.h b/board/asurada/board.h index d3f5f8d298..204575299d 100644 --- a/board/asurada/board.h +++ b/board/asurada/board.h @@ -202,10 +202,12 @@ #define CONFIG_MKBP_USE_GPIO /* Define the host events which are allowed to wakeup AP in S3. */ -#define CONFIG_MKBP_HOST_EVENT_WAKEUP_MASK \ - (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_MODE_CHANGE) /* for DP */) +#define CONFIG_MKBP_HOST_EVENT_WAKEUP_MASK \ + (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_MODE_CHANGE) | /* for DP */ \ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) /* UART */ #undef CONFIG_UART_TX_BUF_SIZE |