summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-07-28 21:19:34 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-07 00:05:45 +0000
commit3d414e9ee9df74fb1150708c8e300bd3474ee803 (patch)
tree937ed1baad5136b63e4f3cbe1e380fdfeb6b67f7 /include
parent8d46141f4d45c65712a9ca7509b7b60128fa4d89 (diff)
downloadchrome-ec-3d414e9ee9df74fb1150708c8e300bd3474ee803.tar.gz
volteer: increase TCPC low power mode exit delay
Increase the low power mode exit delay on Volteer to 50ms. The ps8815 TCPC in particular needs this extra time to work consistently with non-PD chargers. This change also ensures the low power mode exit timer is reset anytime the TC enters the TC_LOW_POWER_MODE state. BUG=b:160182500 BRANCH=none TEST=make buildall TEST=Insert 15W non-PD charger on Volteer: repeat 10 times TEST=Insert USB type-A (7.5W advertised) on Volteer: repeat 10 times Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I40fb4990478292e381421ef977f83b871796c130 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325265 Tested-by: Eric Herrmann <eherrmann@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 81ef70e5f0..9c60f09148 100644
--- a/include/config.h
+++ b/include/config.h
@@ -3954,6 +3954,13 @@
/* Enable TCPC to enter low power mode */
#undef CONFIG_USB_PD_TCPC_LOW_POWER
+/*
+ * Default debounce when exiting low-power mode before checking CC status.
+ * Some TCPCs need additional time following a VBUS change to internally
+ * debounce the CC line status and updating the CC_STATUS register.
+ */
+#define CONFIG_USB_PD_TCPC_LPM_EXIT_DEBOUNCE (25*MSEC)
+
/* Define EC and TCPC modules are in one integrated chip */
#undef CONFIG_USB_PD_TCPC_ON_CHIP