diff options
author | Keith Short <keithshort@chromium.org> | 2020-08-21 10:48:03 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-21 22:06:49 +0000 |
commit | e30c4b7f89594adaaac91b5e4142e01bb51cb75c (patch) | |
tree | 5f7d91836051ccf79ce5184ac6925e5bd1f3367a /include | |
parent | 2cfeac4f360a4dcacd82cd17574e3cdba15b61de (diff) | |
download | chrome-ec-e30c4b7f89594adaaac91b5e4142e01bb51cb75c.tar.gz |
tcpc: Add TCPC reset as a low power event
Some TCPCs do not immediately generate an CC_STATUS interrupt when
waking from low power mode on a device connect. Add PD_EVENT_TCPC_RESET
as a low power event to the type C state machine exits
TC_LOW_POWER_MODE.
The low power exit delay ensures the type C state machine gives the TCPC
an opportunity to internally debounce the CC lines and report a
CC_STATUS interrupt.
BUG=b:165850054
BRANCH=none
TEST=make buildall
TEST=Verfiy connection of SRC and SNK devices on Volteer. Tested against
TUSB422, PS8815, and RT1715 TCPCs.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I21f691d750ef569c02e8d00f528a4f2e6d3064be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2369369
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 5ab722de73..c9e34b4c20 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -73,7 +73,8 @@ enum pd_rx_errors { #define PD_EXIT_LOW_POWER_EVENT_MASK \ (PD_EVENT_CC | \ PD_EVENT_UPDATE_DUAL_ROLE | \ - PD_EVENT_POWER_STATE_CHANGE) + PD_EVENT_POWER_STATE_CHANGE | \ + PD_EVENT_TCPC_RESET) /* --- PD data message helpers --- */ #define PDO_MAX_OBJECTS 7 |