summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2016-01-21 10:09:53 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-27 14:52:18 -0800
commit7d0152a78b8b6947dd103c01d9fe380f5b55edf6 (patch)
tree0a9e0652a75514f9fc979c9eebaaa51850c6cce9 /include/usb_mux.h
parent0801ac67b9310ff6d75e57430235857ecd3ce0a0 (diff)
downloadchrome-ec-7d0152a78b8b6947dd103c01d9fe380f5b55edf6.tar.gz
tcpc: add support for TCPC with integrated high-speed muxes
The TCPCI specification defines ane optional register 18h 'CONFIG_STANDARD_OUTPUT' providing a standardized way of steering the high-speed muxes. Implement the feature as a usb_mux_driver, under the conditional flag CONFIG_USB_PD_TCPM_MUX. The USB PD port index should be set in the port_addr field of the 'usb_mux' structure. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:49605 TEST=run pdeval-stm32f072 connected to a Parade PS8751 board and test USB/DP muxing. Change-Id: I7e5f0b8ec70b1910b2cff9d106514baca8c899e5 Reviewed-on: https://chromium-review.googlesource.com/322956 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index 1524caa3fa..4f38b8e68e 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -80,6 +80,7 @@ struct usb_mux {
/* Supported USB mux drivers */
extern const struct usb_mux_driver pi3usb30532_usb_mux_driver;
extern const struct usb_mux_driver ps8740_usb_mux_driver;
+extern const struct usb_mux_driver tcpm_usb_mux_driver;
/* USB muxes present in system, ordered by PD port #, defined at board-level */
extern struct usb_mux usb_muxes[];