From e20d019fc4494d2340b227ed0c42c29ca39c85d3 Mon Sep 17 00:00:00 2001 From: Todd Broch Date: Thu, 12 Feb 2015 11:22:34 -0800 Subject: pd: Massage initialization at task start. Refactoring effort to unify the set of PD intialization tasks that need to occur. Those areas include: 1. host mode as it relates to power & pull-ups/downs 2. PD tx init 3. PD mux settings Signed-off-by: Todd Broch BRANCH=samus BUG=chrome-os-partner:36481 TEST=manual, 1. compiles and functions on samus_pd 2. If sysjump w/ dongle connected than alternate mode re-entered properly including muxing and HPD Change-Id: I47f32acaeccbd7745e1e01a8b085b1804c4c5000 Reviewed-on: https://chromium-review.googlesource.com/249273 Reviewed-by: Alec Berg Tested-by: Alec Berg Commit-Queue: Alec Berg --- board/zinger/usb_pd_config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/zinger/usb_pd_config.h') diff --git a/board/zinger/usb_pd_config.h b/board/zinger/usb_pd_config.h index e87580a89e..f31087fab2 100644 --- a/board/zinger/usb_pd_config.h +++ b/board/zinger/usb_pd_config.h @@ -105,6 +105,8 @@ static inline void pd_tx_init(void) /* Already done in hardware_init() */ } +static inline void pd_config_init(int port, uint8_t power_role) {} + static inline int pd_adc_read(int port, int cc) { /* only one CC line, assume other one is always high */ -- cgit v1.2.1