diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-28 17:30:43 +1300 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-03 03:50:25 +0000 |
commit | 43db32231ec6aa5725925131d13644aa635b70f6 (patch) | |
tree | 8613e17f3b7644cdc811ffe8cf9d5cbdba459d3c | |
parent | cee74879b587f36a1e6e910b98c100942eb59e40 (diff) | |
download | chrome-ec-43db32231ec6aa5725925131d13644aa635b70f6.tar.gz |
zephyr: Add support for SuperSpeed mux only with DFP
Add support for CONFIG_USBC_SS_MUX_DFP_ONLY which is used on lazor.
BUG=b:183296099
BRANCH=none
TEST=build for lazor and check the various options in
in /tmp/z/trog/build-ro/zephyr/.config
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I5894efbca0c5105d7954c4719e87843dee049a1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789803
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | zephyr/Kconfig.usbc | 7 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index f37abad00d..9932de39c8 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -815,6 +815,13 @@ config PLATFORM_EC_USBC_SS_MUX The board must provide a driver in usb_muxes[] for each port so that this can work. +config PLATFORM_EC_USBC_SS_MUX_DFP_ONLY + bool "Use SuperSpeed mux only when DFP" + help + Only configure the USB Type-C SuperSpeed Mux when a port is a + Downstream Facing Port (DFP). This is needed for chipsets which + don't support being an Upstream Facing Port UFP). + config PLATFORM_EC_USB_MUX_VIRTUAL bool "USB Mux is virtual" depends on PLATFORM_EC_USBC_SS_MUX diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index e1fcfa0de7..4739bf2ee9 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -900,6 +900,11 @@ #define CONFIG_USBC_SS_MUX #endif +#undef CONFIG_USBC_SS_MUX_DFP_ONLY +#ifdef CONFIG_PLATFORM_EC_USBC_SS_MUX_DFP_ONLY +#define CONFIG_USBC_SS_MUX_DFP_ONLY +#endif + #undef CONFIG_USB_MUX_VIRTUAL #ifdef CONFIG_PLATFORM_EC_USB_MUX_VIRTUAL #define CONFIG_USB_MUX_VIRTUAL |