summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-09-01 13:09:05 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-01 15:50:10 +0000
commitdb8b0e14b9b6e58f52f676263fcc3f2d84fa7d62 (patch)
treee54f163be3da4b0b7d9eccb00297191d9b65cd07
parent52c0eb7445ce1debfb01d1c355efb52fa7fda4e5 (diff)
downloadchrome-ec-stabilize-15086.B-main.tar.gz
TCPMv2: Adjust tPSSourceOn to proper valuestabilize-15086.B-main
According to USB Power Delivery Compliance Test Specification, Revision 1.4 Version 4(TEST.PD.PROT.SRC.10#3). UUT should send Type-C error recovery within tPSSourceOn. From the TEST.PD.PROT.SRC.10 test result, UUT sent Type-C Error Recovery after tPSSourceOn_Max(480ms).The time interval is 0.4896s which is exceeded the max timing(480ms). So I pick the value in the middle of 390ms and 480ms. BUG=b:242119728 BRANCH=none TEST=pass TEST.PD.PROT.SRC.10 Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Icef77701eaadad71a204debe00f174d05eeceeae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865416 Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--include/usb_pd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 42ad66b6cc..4f5cdc9f88 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -207,7 +207,10 @@ enum pd_rx_errors {
#define PD_T_SENDER_RESPONSE (24 * MSEC) /* between 24ms and 30ms */
#endif
#define PD_T_PS_TRANSITION (500 * MSEC) /* between 450ms and 550ms */
-#define PD_T_PS_SOURCE_ON (480 * MSEC) /* between 390ms and 480ms */
+/*
+ * This is adjusted for PD3.1 Compliance test TEST.PD.PROT.SRC.10.
+ */
+#define PD_T_PS_SOURCE_ON (435 * MSEC) /* between 390ms and 480ms */
#define PD_T_PS_SOURCE_OFF (835 * MSEC) /* between 750ms and 920ms */
#define PD_T_PS_HARD_RESET (25 * MSEC) /* between 25ms and 35ms */
#define PD_T_ERROR_RECOVERY (240 * MSEC) /* min 240ms if sourcing VConn */