summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-01-06 17:05:53 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-07 05:12:52 +0000
commite95f24ce520db5d7f5b31cdc2dbf310a07ecfdfd (patch)
tree1bd001fccabb56a4366aed679f7c21f482886651 /board
parent98daf2a9d19624b4a5d315f67644d44a99716e64 (diff)
downloadchrome-ec-e95f24ce520db5d7f5b31cdc2dbf310a07ecfdfd.tar.gz
samus: change power supply transition delay to 80ms
Change samus power supply transition delay for Raiden ports to 80ms since it may take that long to turn off the power supply when doing a power swap. BUG=chrome-os-partner:34525 BRANCH=samus TEST=load onto samus, connect samus to samus and do a power swap. Change-Id: I20c2cb78f17168a5b69780de4af5ff478f6d5f87 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/238961 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/samus_pd/usb_pd_config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/samus_pd/usb_pd_config.h b/board/samus_pd/usb_pd_config.h
index aafdd2f3b1..c30c7d76fc 100644
--- a/board/samus_pd/usb_pd_config.h
+++ b/board/samus_pd/usb_pd_config.h
@@ -258,8 +258,12 @@ static inline int pd_snk_is_vbus_provided(int port)
/* start as a sink in case we have no other power supply/battery */
#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED
-/* delay for the voltage transition on the power supply, chip max is 16us */
-#define PD_POWER_SUPPLY_TRANSITION_DELAY 20000 /* us */
+/*
+ * delay for the voltage transition on the power supply, chip max is 16ms.
+ * delay to turn off the power supply depends on vbus capacitance, but
+ * is well above that. 80ms seems to work for most devices.
+ */
+#define PD_POWER_SUPPLY_TRANSITION_DELAY 80000 /* us */
/* Define typical operating power and max power */
#define PD_OPERATING_POWER_MW 15000