summaryrefslogtreecommitdiff
path: root/board/willow
diff options
context:
space:
mode:
authorTomasz Michalec <tm@semihalf.com>2022-07-20 11:47:04 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-13 11:13:00 +0000
commit331aa7b7a710a288fa01a03d7c1736c6f91d35ca (patch)
tree8d318e755d6f04b08520f475aa6a048f019d94a2 /board/willow
parentbd25ac35ece10b0cf67ca071ba21c9f12beb8e5d (diff)
downloadchrome-ec-331aa7b7a710a288fa01a03d7c1736c6f91d35ca.tar.gz
jacuzzi: usb_mux: Split struct usb_mux in jacuzzi boards
Update jacuzzi 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: I40e2d8c4050d9928212ffa77e5ff19cd2a5931eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779628 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/willow')
-rw-r--r--board/willow/board.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/board/willow/board.c b/board/willow/board.c
index 2eda7a0678..826df6940c 100644
--- a/board/willow/board.c
+++ b/board/willow/board.c
@@ -162,13 +162,16 @@ static void board_hpd_status(const struct usb_mux *me, mux_state_t mux_state,
host_set_single_event(EC_HOST_EVENT_USB_MUX);
}
-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,
- .i2c_port = I2C_PORT_USB_MUX,
- .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS,
- .driver = &it5205_usb_mux_driver,
- .hpd_update = &board_hpd_status,
+ .mux =
+ &(const struct usb_mux){
+ .usb_port = 0,
+ .i2c_port = I2C_PORT_USB_MUX,
+ .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS,
+ .driver = &it5205_usb_mux_driver,
+ .hpd_update = &board_hpd_status,
+ },
},
};