summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2022-07-20 13:42:21 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-13 11:16:36 +0000
commit907eef0c843b393316c430a7779b1e5a2d3c8294 (patch)
tree40630953da2339d4f1cabb4121979b4a14268cee
parent90c512e25b5ffc8b3c04eb52d3242b29ea13f86c (diff)
downloadchrome-ec-907eef0c843b393316c430a7779b1e5a2d3c8294.tar.gz
ambassador: usb_mux: Split struct usb_mux in ambassador board
Update ambassador board to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I927d460fad0b0ac578213c0647ac891443f838c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780409 Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
-rw-r--r--board/ambassador/board.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/board/ambassador/board.c b/board/ambassador/board.c
index fde4c12d8b..f2bc7557ec 100644
--- a/board/ambassador/board.c
+++ b/board/ambassador/board.c
@@ -271,11 +271,13 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
.flags = TCPC_FLAGS_RESET_ACTIVE_HIGH,
},
};
-const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
+const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
[USB_PD_PORT_TCPC_0] = {
- .usb_port = USB_PD_PORT_TCPC_0,
- .driver = &anx7447_usb_mux_driver,
- .hpd_update = &anx7447_tcpc_update_hpd_status,
+ .mux = &(const struct usb_mux) {
+ .usb_port = USB_PD_PORT_TCPC_0,
+ .driver = &anx7447_usb_mux_driver,
+ .hpd_update = &anx7447_tcpc_update_hpd_status,
+ },
},
};