summaryrefslogtreecommitdiff
path: root/board/twinkie
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-01-17 11:49:14 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-17 23:19:54 +0000
commitca228445ccc48b70b6959c38e263867256462a48 (patch)
treeaed4f3a8bd101b245cc7d92f58ea5d103a55ab0c /board/twinkie
parent7fc407a93437929ec925c3041051a41bd2e83df6 (diff)
downloadchrome-ec-ca228445ccc48b70b6959c38e263867256462a48.tar.gz
pd: samus: separate macros for power supply on and off delays
Separate macros for defining delays to turn on and off VBUS on the Raiden ports. Tune the delays for Samus to provide extra headroom based off of measured worst case times. BUG=chrome-os-partner:34525 BRANCH=samus TEST=load onto samus. connect two samus' and use twinkie to analyze time between request and PS_RDY on connect and then on a power swap. Change-Id: I65cec911e34c22a4aad136423362a3a65bc2ab2a Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/241761 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie')
-rw-r--r--board/twinkie/usb_pd_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/twinkie/usb_pd_config.h b/board/twinkie/usb_pd_config.h
index 72dbe72ee4..67a472fff4 100644
--- a/board/twinkie/usb_pd_config.h
+++ b/board/twinkie/usb_pd_config.h
@@ -189,7 +189,8 @@ static inline int pd_snk_is_vbus_provided(int port)
#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED
/* delay necessary for the voltage transition on the power supply */
-#define PD_POWER_SUPPLY_TRANSITION_DELAY 50000 /* us */
+#define PD_POWER_SUPPLY_TURN_ON_DELAY 50000 /* us */
+#define PD_POWER_SUPPLY_TURN_OFF_DELAY 50000 /* us */
/* Define typical operating power and max power */
#define PD_OPERATING_POWER_MW 15000