diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 11:42:01 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:12:46 +0000 |
commit | bd25ac35ece10b0cf67ca071ba21c9f12beb8e5d (patch) | |
tree | 41e8513eff9b5876d4fa7891aa5d46859224af09 /board/poppy | |
parent | a085e97f2f15c697e05570de3bda7feaeb2541ed (diff) | |
download | chrome-ec-bd25ac35ece10b0cf67ca071ba21c9f12beb8e5d.tar.gz |
poppy: usb_mux: Split struct usb_mux in poppy boards
Update poppy 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: I8c2eb0f218a7885c1e6b364067ec0f6680f7a04e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779627
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/poppy')
-rw-r--r-- | board/poppy/board.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/board/poppy/board.c b/board/poppy/board.c index e9336db5b4..a69fdd3f16 100644 --- a/board/poppy/board.c +++ b/board/poppy/board.c @@ -229,16 +229,22 @@ 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_port = 0, - .driver = &anx74xx_tcpm_usb_mux_driver, - .hpd_update = &anx74xx_tcpc_update_hpd_status, + .mux = + &(const struct usb_mux){ + .usb_port = 0, + .driver = &anx74xx_tcpm_usb_mux_driver, + .hpd_update = &anx74xx_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, + }, } }; |