diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 12:33:42 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:15:44 +0000 |
commit | 648a7671fdf43a106ed3bfc2963830a2aa698e2d (patch) | |
tree | 8848bdea10e21e68310a582ccd61f03b8bf5a2a5 /board | |
parent | bb9d6962f347eeeb34029e1858b5b50802b3f91e (diff) | |
download | chrome-ec-648a7671fdf43a106ed3bfc2963830a2aa698e2d.tar.gz |
rammus: usb_mux: Split struct usb_mux in rammus board
Update rammus 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: I02b69de466579b4a369657a36082dbabe87de9a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780404
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/rammus/board.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/board/rammus/board.c b/board/rammus/board.c index cc1a74d5e6..8cbc6c6856 100644 --- a/board/rammus/board.c +++ b/board/rammus/board.c @@ -202,16 +202,20 @@ 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_PS8751] = { - .usb_port = USB_PD_PORT_PS8751, - .driver = &tcpci_tcpm_usb_mux_driver, - .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_PS8751, + .driver = &tcpci_tcpm_usb_mux_driver, + .hpd_update = &ps8xxx_tcpc_update_hpd_status, + }, }, [USB_PD_PORT_ANX7447] = { - .usb_port = USB_PD_PORT_ANX7447, - .driver = &anx7447_usb_mux_driver, - .hpd_update = &anx7447_tcpc_update_hpd_status, + .mux = &(const struct usb_mux) { + .usb_port = USB_PD_PORT_ANX7447, + .driver = &anx7447_usb_mux_driver, + .hpd_update = &anx7447_tcpc_update_hpd_status, + }, } }; |