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>
This commit is contained in:
YH Huang
2015-11-12 13:29:16 +08:00
committed by chrome-bot
parent 565db4519c
commit e5544226e4

View File

@@ -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;