summaryrefslogtreecommitdiff
path: root/board/trogdor
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2022-07-20 10:44:32 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-13 11:11:35 +0000
commit6b19826c3ba4dc574938e0c005ca978ee5fe0a84 (patch)
treeadc142667222d54557d34fae0927fd8bb27a4c57 /board/trogdor
parent76e5f9a7a12e3b81d9bf87423c7eb6c9ca902712 (diff)
downloadchrome-ec-6b19826c3ba4dc574938e0c005ca978ee5fe0a84.tar.gz
trogdor: usb_mux: Split struct usb_mux in trogdor boards
Update trogdor 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: I8bcd1f97850c9064734ee60a7785b55578a6a9a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779621 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'board/trogdor')
-rw-r--r--board/trogdor/usbc_config.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/board/trogdor/usbc_config.c b/board/trogdor/usbc_config.c
index b510daaff1..39a54f659e 100644
--- a/board/trogdor/usbc_config.c
+++ b/board/trogdor/usbc_config.c
@@ -168,16 +168,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,
+ },
}
};