diff options
author | Scott Collyer <scollyer@google.com> | 2021-08-25 13:53:36 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-26 19:46:24 +0000 |
commit | 4335737cac492f467ee270ad2040bd7822e0b97a (patch) | |
tree | 6465561f7aa8f311c2e1d4b66026e9d2db30187b | |
parent | b4e7e05b7e36c53ea1ee9f0732a1c7d37a776c07 (diff) | |
download | chrome-ec-4335737cac492f467ee270ad2040bd7822e0b97a.tar.gz |
honeybuns: override usb_ufp_check_usb3_enable()
This CL adds an override function for usb_ufp_check_usb3_enable() so
that USB3.1 mode gets enabled by default when attaching as a SNK/UFP
in a type-c only connection.
BUG=b:195042155
BRANCH=quiche
TEST=Verfied that when I connect USBC only source on gingerbread that
the TUSB1064 usb mux gets configured to enable USB3.1 mode.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: Ib1a12f1c221133d50dcbacb02bb3376ff11fc833
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120065
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | baseboard/honeybuns/baseboard.h | 1 | ||||
-rw-r--r-- | baseboard/honeybuns/usbc_support.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/baseboard/honeybuns/baseboard.h b/baseboard/honeybuns/baseboard.h index d3f3eb9408..9d05440145 100644 --- a/baseboard/honeybuns/baseboard.h +++ b/baseboard/honeybuns/baseboard.h @@ -157,7 +157,6 @@ enum usb_strings { #define CONFIG_USBC_VCONN #define CONFIG_USBC_VCONN_SWAP #define CONFIG_USBC_SS_MUX -#define CONFIG_USBC_SS_MUX_UFP_USB3 #define CONFIG_HAS_TASK_PD_INT #define CONFIG_STM32G4_UCPD_DEBUG diff --git a/baseboard/honeybuns/usbc_support.c b/baseboard/honeybuns/usbc_support.c index efad5704e7..4d7049ad37 100644 --- a/baseboard/honeybuns/usbc_support.c +++ b/baseboard/honeybuns/usbc_support.c @@ -331,6 +331,12 @@ int c1_ps8805_vbus_source_enable(int port, int enable) return ps8805_gpio_set_level(port, PS8805_GPIO_1, enable); } +__override bool usb_ufp_check_usb3_enable(int port) +{ + /* USB3.1 mux should be enabled based on UFP data role */ + return port == USB_PD_PORT_HOST; +} + #ifdef GPIO_USBC_UF_ATTACHED_SRC static int ppc_ocp_count; |