summaryrefslogtreecommitdiff
path: root/include/usb_api.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-03-01 15:10:39 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-05-02 22:50:32 -0700
commit7fb0338cbd40d40db2a304cd3e8ed10ae4f59450 (patch)
treeec27fb44d6c27d537f35e02cd150890b51f851e1 /include/usb_api.h
parent49c776b5b78462ae2118fca240f7fb5df7dc444c (diff)
downloadchrome-ec-7fb0338cbd40d40db2a304cd3e8ed10ae4f59450.tar.gz
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 <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_api.h')
-rw-r--r--include/usb_api.h3
1 files changed, 3 insertions, 0 deletions
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);