summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuibin Chang <ruibin.chang@ite.com.tw>2020-12-11 17:03:06 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-15 03:30:33 +0000
commite0db691a8d3cd40ca95ccc8eadf93093af733905 (patch)
tree67c7f310fd46d8f6e8ad3ea96de3510e61010bb4
parent6dc2111008af964fa1521b1259d3da45cb7dbe73 (diff)
downloadchrome-ec-e0db691a8d3cd40ca95ccc8eadf93093af733905.tar.gz
tcpm/it83xx: use PD_VCONN_SWAP_DELAY delay time for Vconn drop
The Vconn doesn't drop to 0v before we disable 5v tolerant on cc, so I use the already existent baseboard configuration PD_VCONN_SWAP_DELAY to increase delay time for Vconn drop. BUG=none BRANCH=none TEST=on drawcia, Vconn drop to 0v before we disable 5v tolerant on cc. Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw> Change-Id: I526d7f36cba6082e7e644ea0923cc4bae365da16 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2584559 Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--driver/tcpm/it83xx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/tcpm/it83xx.c b/driver/tcpm/it83xx.c
index cfb44bd164..a498959201 100644
--- a/driver/tcpm/it83xx.c
+++ b/driver/tcpm/it83xx.c
@@ -36,7 +36,9 @@
#endif
/* Wait time for vconn power switch to turn off. */
-#ifndef PD_IT83XX_VCONN_TURN_OFF_DELAY_US
+#ifdef PD_VCONN_SWAP_DELAY
+#define PD_IT83XX_VCONN_TURN_OFF_DELAY_US PD_VCONN_SWAP_DELAY
+#else
#define PD_IT83XX_VCONN_TURN_OFF_DELAY_US 500
#endif