summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-06-15 11:42:55 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-06-18 13:54:51 -0700
commitd58490e1b78f1b02958241120e13598f20da77b9 (patch)
treef8856942468267e11a47204fbc2a8a52a1414b4e
parent4c0f7192f6ca544bf46aea9ba8009f560b9cc5b5 (diff)
downloadchrome-ec-d58490e1b78f1b02958241120e13598f20da77b9.tar.gz
cheza: Fix USB peripheral mode when using a Type-C to std-A male cable
In the PD state machine, the decision is that if the data is DFP, then connect the mux, but if the data role is UFP, then disconnect the mux. To make the Type-C to std-A male cable work, the UFP should also connect, need to disable the CONFIG_USBC_SS_MUX_DFP_ONLY. BRANCH=none BUG=b:110265762 TEST=Used an image enabling USB peripheral mode and USB gadget zero, typed EC command to mux the port-1 HS to AP, plugged a Type-C to std-A male cable, the host side can enumerate the gadget zero device and the dmesg log shows the detection too. Change-Id: I532e53bd0832c50a86a91d1c8d84fd55af543eca Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1102985 Tested-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/cheza/board.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h
index 55e80c56aa..bf0d27d13d 100644
--- a/board/cheza/board.h
+++ b/board/cheza/board.h
@@ -86,7 +86,6 @@
#define CONFIG_USB_PD_5V_EN_CUSTOM
#define CONFIG_USBC_PPC_SN5S330
#define CONFIG_USBC_SS_MUX
-#define CONFIG_USBC_SS_MUX_DFP_ONLY
#define CONFIG_USBC_VCONN
#define CONFIG_USBC_VCONN_SWAP