From 7fb0338cbd40d40db2a304cd3e8ed10ae4f59450 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 1 Mar 2017 15:10:39 +0800 Subject: hammer: Pulse detection pin on USB wake event When usb_wake is called (key press, trackpad event), pulse detection pin for 100us. This allows Lid EC to wake the AP even when it is in deep S3 mode, where normal wake using USB lines does not work. BRANCH=none BUG=b:35775062 TEST=Flash hammer, looks at poppy console: base power is not disconnected, but events appear in the console. Change-Id: I7b8ee407046d4caa1ce75190c30d693b71b00d2e Reviewed-on: https://chromium-review.googlesource.com/448380 Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat Reviewed-by: Vincent Palatin --- include/usb_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/usb_api.h') diff --git a/include/usb_api.h b/include/usb_api.h index c6a949ab61..4803890504 100644 --- a/include/usb_api.h +++ b/include/usb_api.h @@ -56,6 +56,9 @@ int usb_is_suspended(void); */ void usb_wake(void); +/* Board-specific USB wake, for side-band wake, called by usb_wake above. */ +void board_usb_wake(void); + #ifdef CONFIG_USB_SELECT_PHY /* Select which PHY to use. */ void usb_select_phy(uint32_t phy); -- cgit v1.2.1