diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-01-17 11:49:14 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-17 23:19:54 +0000 |
commit | ca228445ccc48b70b6959c38e263867256462a48 (patch) | |
tree | aed4f3a8bd101b245cc7d92f58ea5d103a55ab0c /common/usb_pd_protocol.c | |
parent | 7fc407a93437929ec925c3041051a41bd2e83df6 (diff) | |
download | chrome-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 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index c7e44e267d..fe844ce136 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -1990,13 +1990,13 @@ void pd_task(void) * on during debounce. */ get_time().val + - PD_POWER_SUPPLY_TRANSITION_DELAY - + PD_POWER_SUPPLY_TURN_ON_DELAY - (pd[port].last_state == PD_STATE_SRC_DISCONNECTED_DEBOUNCE ? PD_T_CC_DEBOUNCE : 0), #else get_time().val + - PD_POWER_SUPPLY_TRANSITION_DELAY, + PD_POWER_SUPPLY_TURN_ON_DELAY, #endif PD_STATE_SRC_DISCOVERY); } @@ -2061,7 +2061,7 @@ void pd_task(void) set_state_timeout( port, get_time().val + - PD_POWER_SUPPLY_TRANSITION_DELAY, + PD_POWER_SUPPLY_TURN_ON_DELAY, PD_STATE_SRC_TRANSITION); } break; @@ -2210,7 +2210,7 @@ void pd_task(void) pd_power_supply_reset(port); set_state_timeout(port, get_time().val + - PD_POWER_SUPPLY_TRANSITION_DELAY, + PD_POWER_SUPPLY_TURN_OFF_DELAY, PD_STATE_SRC_SWAP_STANDBY); } break; @@ -2595,7 +2595,7 @@ void pd_task(void) set_state_timeout( port, get_time().val + - PD_POWER_SUPPLY_TRANSITION_DELAY, + PD_POWER_SUPPLY_TURN_ON_DELAY, PD_STATE_SNK_SWAP_COMPLETE); } break; |