From 3f4dec3720c1d70a3265ee133e1c9154c7d89adf Mon Sep 17 00:00:00 2001 From: Jan Dabros Date: Thu, 12 Aug 2021 11:38:48 +0200 Subject: pd: usb: Add usb type-c USB mux handling for UFP-only platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some platforms (e.g. servo_v4(p1)) are designed to act only as a UFP considering superspeed terminations. Add config option to properly manage usb superspeed muxer for such. BUG=b:137887386,b:182419010 BRANCH=main TEST=With servo_v4p1 connected to the DUT, unplug and replug CHG couple of times in order to force PR_SWAP on DUT port. Each time verify on the DUT console, whether all USB3 devices are visible. They should be, since servo is trying to perform DR_SWAP when it acts as a SRC. Signed-off-by: Jan Dabros Change-Id: I0a7756f0bb2192795b7489334ed01d317d3e54ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3094246 Reviewed-by: Michał Barnaś Reviewed-by: Wai-Hong Tam Commit-Queue: Wai-Hong Tam --- include/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 4e83e96f9c..057ae9b8b7 100644 --- a/include/config.h +++ b/include/config.h @@ -4713,6 +4713,9 @@ */ #undef CONFIG_USBC_SS_MUX_DFP_ONLY +/* Only configure USB type-c superspeed mux when UFP */ +#undef CONFIG_USBC_SS_MUX_UFP_ONLY + /* Support v1.1 type-C connection state machine */ #undef CONFIG_USBC_BACKWARDS_COMPATIBLE_DFP -- cgit v1.2.1