diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 11:31:29 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:12:08 +0000 |
commit | dedd3cb583894c4ea3b5370f6f02d5ecfd7eac6b (patch) | |
tree | 9d26e41a751ea0d3f7cc3ab1fc8e4b72e5f0cd49 /board/dratini | |
parent | e8f749338124938ec707bc7287edc0defdd341cd (diff) | |
download | chrome-ec-dedd3cb583894c4ea3b5370f6f02d5ecfd7eac6b.tar.gz |
hatch: usb_mux: Split struct usb_mux in hatch boards
Update hatch 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: I795eec4c5df1123fcb21356fd529afe7d9ac42bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779624
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'board/dratini')
-rw-r--r-- | board/dratini/board.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/board/dratini/board.c b/board/dratini/board.c index b8f8bbf740..84759b74b6 100644 --- a/board/dratini/board.c +++ b/board/dratini/board.c @@ -163,16 +163,20 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { }, }; -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, + }, }, [USB_PD_PORT_TCPC_1] = { - .usb_port = USB_PD_PORT_TCPC_1, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_TCPC_1, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + }, } }; |