diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2016-01-21 10:09:53 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-27 14:52:18 -0800 |
commit | 7d0152a78b8b6947dd103c01d9fe380f5b55edf6 (patch) | |
tree | 0a9e0652a75514f9fc979c9eebaaa51850c6cce9 /include | |
parent | 0801ac67b9310ff6d75e57430235857ecd3ce0a0 (diff) | |
download | chrome-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')
-rw-r--r-- | include/config.h | 6 | ||||
-rw-r--r-- | include/usb_mux.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index d307b75ad2..bd86449519 100644 --- a/include/config.h +++ b/include/config.h @@ -1827,6 +1827,12 @@ #undef CONFIG_USB_PD_TCPM_FUSB302 /* + * Use this option if the TCPC port controller supports the optional register + * 18h CONFIG_STANDARD_OUTPUT to steer the high-speed muxes. + */ +#undef CONFIG_USB_PD_TCPM_MUX + +/* * Use this option if the TCPC port controller is on a seperate chip from * the TCPM layer and if VUBS detect GPIO is not available on the TCPM * mcu. 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[]; |