summaryrefslogtreecommitdiff
path: root/board/dingdong/usb_pd_config.h
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2015-02-12 11:22:34 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-25 03:33:12 +0000
commite20d019fc4494d2340b227ed0c42c29ca39c85d3 (patch)
tree0116ec759d2c1365bfcdb2b26856b883a9c25981 /board/dingdong/usb_pd_config.h
parentc3cd10937e321f04c4b2dfc4786ec146e785e5cb (diff)
downloadchrome-ec-e20d019fc4494d2340b227ed0c42c29ca39c85d3.tar.gz
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 <tbroch@chromium.org> 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 <alecaberg@chromium.org> Tested-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/dingdong/usb_pd_config.h')
-rw-r--r--board/dingdong/usb_pd_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/dingdong/usb_pd_config.h b/board/dingdong/usb_pd_config.h
index 185adf151d..0d9cf41b7c 100644
--- a/board/dingdong/usb_pd_config.h
+++ b/board/dingdong/usb_pd_config.h
@@ -118,6 +118,12 @@ static inline void pd_tx_init(void)
static inline void pd_set_host_mode(int port, int enable) {}
+static inline void pd_config_init(int port, uint8_t power_role)
+{
+ /* Initialize TX pins and put them in Hi-Z */
+ pd_tx_init();
+}
+
static inline int pd_adc_read(int port, int cc)
{
/* only one CC line, assume other one is always low */