diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-06-25 11:48:42 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-29 08:48:36 +0000 |
commit | 706c939dbb95c58f400136a8c08b13a00977a1c9 (patch) | |
tree | 3d0f00059f0ce8e0b7f31674439789c46c78a42c /baseboard/kukui | |
parent | d0d08e1f15c5396709d709718a0a5dfc168c7063 (diff) | |
download | chrome-ec-706c939dbb95c58f400136a8c08b13a00977a1c9.tar.gz |
kukui: move common mkbp wake events to baseboard.h
also, kodama(detachable) missed MODE_CHANGE event, add it back.
BUG=none
TEST=make buildall
BRANCH=kukui,icarus
Change-Id: Id7139ef64caf28720d389d8c048bfd724b42ba95
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987227
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/kukui')
-rw-r--r-- | baseboard/kukui/baseboard.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/baseboard/kukui/baseboard.h b/baseboard/kukui/baseboard.h index 13ff6a4433..1f30d1e858 100644 --- a/baseboard/kukui/baseboard.h +++ b/baseboard/kukui/baseboard.h @@ -114,6 +114,18 @@ #define CONFIG_TABLET_MODE_SWITCH #define PD_OPERATING_POWER_MW 30000 + +#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)) + +#else /* !VARIANT_KUKUI_JACUZZI */ + +#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)) + #endif /* VARIANT_KUKUI_JACUZZI */ /* |