summaryrefslogtreecommitdiff
path: root/driver/ppc/syv682x.c
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-09-09 11:14:29 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-11 05:14:39 +0000
commitd0ad43dbe419ec86b4c9429f071911205e994826 (patch)
tree304c40114d2fc9f201669bd27bc6d3b4d3d3d475 /driver/ppc/syv682x.c
parent0757a13425f8f90c089c22265f23903ffe9603f6 (diff)
downloadchrome-ec-d0ad43dbe419ec86b4c9429f071911205e994826.tar.gz
syv682: Shorten discharge time
This part ignores I2C writes while discharging VBUS. This effectively elongates transitions out of Attached.SRC by the Type-C state machine to the amount of time required to discharge VBUS. Mitigate this by configuring the shortest possible VBUS discharge time (50 ms). BUG=b:163143427 TEST=Connect Volteer C1 to Volteer C1; observe stable Attached states BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I072888f9ac8d3d06321872a237d9848688eced55 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2401583 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/ppc/syv682x.c')
-rw-r--r--driver/ppc/syv682x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/ppc/syv682x.c b/driver/ppc/syv682x.c
index 53534279fc..0ea005051f 100644
--- a/driver/ppc/syv682x.c
+++ b/driver/ppc/syv682x.c
@@ -650,7 +650,7 @@ static int syv682x_init(int port)
* voltage, and thermal shutdown
*/
regval = (SYV682X_OC_DELAY_10MS << SYV682X_OC_DELAY_SHIFT)
- | (SYV682X_DSG_TIME_200MS << SYV682X_DSG_TIME_SHIFT)
+ | (SYV682X_DSG_TIME_50MS << SYV682X_DSG_TIME_SHIFT)
| (SYV682X_DSG_RON_200_OHM << SYV682X_DSG_RON_SHIFT)
| SYV682X_CONTROL_2_SDSG;
rv = write_reg(port, SYV682X_CONTROL_2_REG, regval);