From 415a994d580de772a49f43c5f8f732accb81dc49 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Fri, 2 Jan 2015 09:46:55 -0800 Subject: pd: change hard reset power supply off delay Change delay between sending hard reset and cutting VBUS from PD_T_SINK_TRANSITION (35ms) to the new timeout PD_T_PS_HARD_RESET (15ms). BUG=chrome-os-partner:34985 BRANCH=samus TEST=make -j buildall Change-Id: I1dfcdc790ae748aa56350814d8c40d376eba68fc Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/238230 Reviewed-by: Vincent Palatin --- common/usb_pd_protocol.c | 2 +- include/usb_pd.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 4c8b72c558..788ce9755a 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2279,7 +2279,7 @@ void pd_task(void) */ if (pd[port].power_role == PD_ROLE_SOURCE) { set_state_timeout(port, - get_time().val + PD_T_SINK_TRANSITION, + get_time().val + PD_T_PS_HARD_RESET, PD_STATE_HARD_RESET_EXECUTE); } else { set_state(port, diff --git a/include/usb_pd.h b/include/usb_pd.h index 0a11ffbaea..13e8a982e2 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -118,6 +118,7 @@ enum pd_errors { #define PD_T_PS_TRANSITION (500*MSEC) /* between 450ms and 550ms */ #define PD_T_PS_SOURCE_ON (480*MSEC) /* between 390ms and 480ms */ #define PD_T_PS_SOURCE_OFF (920*MSEC) /* between 750ms and 920ms */ +#define PD_T_PS_HARD_RESET (15*MSEC) /* between 10ms and 20ms */ #define PD_T_DRP_HOLD (120*MSEC) /* between 100ms and 150ms */ #define PD_T_DRP_LOCK (120*MSEC) /* between 100ms and 150ms */ /* DRP_SNK + DRP_SRC must be between 50ms and 100ms with 30%-70% duty cycle */ -- cgit v1.2.1