diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 12:00:48 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:13:39 +0000 |
commit | 2346cc959882ad60e422d9469f808d36d22ea97c (patch) | |
tree | c9a8e46b58eb894c959b1549cae8c8552f5daf15 | |
parent | 261892f3d3d676ee13c0eac1d146f93b53485429 (diff) | |
download | chrome-ec-2346cc959882ad60e422d9469f808d36d22ea97c.tar.gz |
coral: usb_mux: Split struct usb_mux in coral board
Update coral 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: I8d450e24e0dd3bb72dbbbd7484a04e233c99bb4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779632
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | board/coral/board.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/board/coral/board.c b/board/coral/board.c index 8c9d481f7b..c63a2f6ddc 100644 --- a/board/coral/board.c +++ b/board/coral/board.c @@ -289,17 +289,21 @@ static int ps8751_tune_mux(const struct usb_mux *me) return EC_SUCCESS; } -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_ANX74XX] = { - .usb_port = USB_PD_PORT_ANX74XX, - .driver = &anx74xx_tcpm_usb_mux_driver, - .hpd_update = &anx74xx_tcpc_update_hpd_status, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_ANX74XX, + .driver = &anx74xx_tcpm_usb_mux_driver, + .hpd_update = &anx74xx_tcpc_update_hpd_status, + }, }, [USB_PD_PORT_PS8751] = { - .usb_port = USB_PD_PORT_PS8751, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, - .board_init = &ps8751_tune_mux, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_PS8751, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .board_init = &ps8751_tune_mux, + }, } }; |