summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-09-01 16:18:33 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-02 23:41:59 +0000
commit155f25935a1ba0e3d105c7c98c7e5ac587e10a80 (patch)
treefe7d3aa9a13040ba78200db5e7b0c9be5015d651
parent9bfe90b111b030419871c5035b4dc0063e2f8221 (diff)
downloadchrome-ec-155f25935a1ba0e3d105c7c98c7e5ac587e10a80.tar.gz
TCPMv2: setting PE_TIMER_SENDER_RESPONSE based on PD 3.1
In USB Power Delivery Specification Revision 3.1, Version 1.5, the tSenderResponse have changed to min 26/ max 32 ms. BUG=b:242021187 BRANCH=none TEST=verify pass on TEST.PD.PROT.SRC.3 Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I470414d20d628425022634fbf9b9ef4c807df603 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3868871 Reviewed-by: Diana Z <dzigterman@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--include/usb_pd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 4f5cdc9f88..65357a47f8 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -204,7 +204,11 @@ enum pd_rx_errors {
#ifndef CONFIG_USB_PD_TCPMV2
#define PD_T_SENDER_RESPONSE (30 * MSEC) /* between 24ms and 30ms */
#else
-#define PD_T_SENDER_RESPONSE (24 * MSEC) /* between 24ms and 30ms */
+/*
+ * In USB Power Delivery Specification Revision 3.1, Version 1.5,
+ * the tSenderResponse have changed to min 26/ max 32 ms.
+ */
+#define PD_T_SENDER_RESPONSE (26 * MSEC) /* between 26ms and 32ms */
#endif
#define PD_T_PS_TRANSITION (500 * MSEC) /* between 450ms and 550ms */
/*