summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYH Huang <yh.huang@mediatek.com>2015-11-12 13:29:16 +0800
committerchrome-bot <chrome-bot@chromium.org>2015-12-07 06:43:13 -0800
commite5544226e459506b503b4ba19cf31d6256645a56 (patch)
tree88d73faa0c6636c73b4066b2363e1213a79e601e
parent565db4519c7f13f8df1c331b6864ffc313179f85 (diff)
downloadchrome-ec-e5544226e459506b503b4ba19cf31d6256645a56.tar.gz
keyboard_mkbp: set the key pressed event to wakeup AP
When AP is suspended, only predefined events could wakeup AP. Check EC_MKBP_EVENT_KEY_MATRIX event when we use embedded keyboard to make AP wakeup from S3 power state. BRANCH=none BUG=chrome-os-partner:47554 TEST=Enter "powerd_dbus_suspend" in AP console to make system suspend and then press embedded keyboard to wakeup AP. Change-Id: I79f91776c39554a4e488e50841d3537fe85fea13 Signed-off-by: YH Huang <yh.huang@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/312156 Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org>
-rw-r--r--common/mkbp_event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c
index 4e965a9d05..b039afa631 100644
--- a/common/mkbp_event.c
+++ b/common/mkbp_event.c
@@ -52,7 +52,8 @@ void mkbp_send_event(uint8_t event_type)
* interrupt the AP if it is a wakeup event
* which is defined in the white list.
*/
- if (events & CONFIG_MKBP_WAKEUP_MASK)
+ if ((events & CONFIG_MKBP_WAKEUP_MASK) ||
+ (event_type == EC_MKBP_EVENT_KEY_MATRIX))
set_host_interrupt(1);
return;