diff options
author | Ruibin Chang <Ruibin.Chang@ite.com.tw> | 2018-12-21 10:26:54 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-04 15:30:57 -0800 |
commit | a85c958633de765e529f2fb539fdc130dd99a6a2 (patch) | |
tree | 0a473a25b24b1a7d29a244ce7642bef9d7eea7eb /include | |
parent | 08803b0ac80815332b07a5d8ecf3aa3c830665b8 (diff) | |
download | chrome-ec-a85c958633de765e529f2fb539fdc130dd99a6a2.tar.gz |
common/usb_pd_protocol: Try.SRC to TryWait.SNK timeout
The port shall transition to TryWait.SNK after tDRPTry
(75~150ms) and the SRC.Rd state has not been detected and
Vbus is within vSafe0V, or after tTryTimeout(550~1100ms)
and the SRC.Rd state has not been detected. This define
in USB Type-C 1.3 spec section 4.5.2.2.10.2.
BRANCH=None
BUG=None
TEST=GRL USBPD test
Change-Id: I35be7acf24eb360232b1f22a43abb8c1a1dcde99
Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/1381592
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: 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 ceafd18c9d..f57d8edbb5 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -176,7 +176,8 @@ enum pd_rx_errors { #define PD_T_BIST_TRANSMIT (50*MSEC) /* 50ms (used for task_wait arg) */ #define PD_T_BIST_RECEIVE (60*MSEC) /* 60ms (max time to process bist) */ #define PD_T_VCONN_SOURCE_ON (100*MSEC) /* 100ms */ -#define PD_T_TRY_SRC (125*MSEC) /* Max time for Try.SRC state */ +#define PD_T_DRP_TRY (125*MSEC) /* btween 75 and 150ms(monitor Vbus) */ +#define PD_T_TRY_TIMEOUT (550*MSEC) /* between 550ms and 1100ms */ #define PD_T_TRY_WAIT (600*MSEC) /* Max time for TryWait.SNK state */ #define PD_T_SINK_REQUEST (100*MSEC) /* Wait 100ms before next request */ |