diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 11:12:17 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:11:49 +0000 |
commit | 5c6c768da4a74edab2187e000bbb2caecbf003b5 (patch) | |
tree | 4eada715128809a52b64ded72c99a2b63a66eb0d /board/mrbland/board.c | |
parent | 6b19826c3ba4dc574938e0c005ca978ee5fe0a84 (diff) | |
download | chrome-ec-5c6c768da4a74edab2187e000bbb2caecbf003b5.tar.gz |
strongbad: usb_mux: Split struct usb_mux in strongbad boards
Update strongbad boards 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: I6527f41f081bca7a179f52afb87a6f534d2f09f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779622
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'board/mrbland/board.c')
-rw-r--r-- | board/mrbland/board.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/board/mrbland/board.c b/board/mrbland/board.c index 111dccf128..50ba008512 100644 --- a/board/mrbland/board.c +++ b/board/mrbland/board.c @@ -195,11 +195,14 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { * to AP. But the TCPC chip is also needed to know the HPD status; otherwise, * the mux misbehaves. */ -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_port = 0, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .mux = + &(const struct usb_mux){ + .usb_port = 0, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + }, }, }; |