diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 12:25:55 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:15:13 +0000 |
commit | 57e02ba8e372a322324f9d76dcc5f9a612a1ab2e (patch) | |
tree | 5254680e5403a36aaba0e61ca389c9cbf5d207e2 | |
parent | 8fa5f9d20238b08c07d21ee8ba535bbf1873c745 (diff) | |
download | chrome-ec-57e02ba8e372a322324f9d76dcc5f9a612a1ab2e.tar.gz |
herobrine: usb_mux: Split struct usb_mux in herobrine board
Update herobrine 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: I9a740129befb85a68df16a8b1c2687d4b294b714
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780400
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
-rw-r--r-- | board/herobrine/usbc_config.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/board/herobrine/usbc_config.c b/board/herobrine/usbc_config.c index 525628413d..98d1b70bac 100644 --- a/board/herobrine/usbc_config.c +++ b/board/herobrine/usbc_config.c @@ -120,16 +120,22 @@ 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, + }, }, { - .usb_port = 1, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .mux = + &(const struct usb_mux){ + .usb_port = 1, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + }, } }; |