diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 13:45:24 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:17:13 +0000 |
commit | 1c560952691392bab354f01d4d434f664f5123b3 (patch) | |
tree | f2ef9aeb3e5d186884b95df5c9bcd89603a6b052 | |
parent | bea6d75e10d14e5efe0e7f9f51b97d1a2f6d4b7d (diff) | |
download | chrome-ec-1c560952691392bab354f01d4d434f664f5123b3.tar.gz |
servo_v4p1: usb_mux: Split struct usb_mux in servo_v4p1 board
Update servo_v4p1 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: I46492672691f12b249ed37c6f52dcc18b1b40cd4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780412
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/servo_v4p1/board.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/board/servo_v4p1/board.c b/board/servo_v4p1/board.c index be26130480..d71cc721df 100644 --- a/board/servo_v4p1/board.c +++ b/board/servo_v4p1/board.c @@ -85,14 +85,20 @@ static int board_tusb1064_dp_rx_eq_set(const struct usb_mux *me, return rv; } -const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { - [CHG] = { /* CHG port connected directly to USB 3.0 hub, no mux */ }, - [DUT] = { /* DUT port with UFP mux */ - .usb_port = DUT, - .i2c_port = I2C_PORT_MASTER, - .i2c_addr_flags = TUSB1064_I2C_ADDR10_FLAGS, - .driver = &tusb1064_usb_mux_driver, - .board_set = &board_tusb1064_dp_rx_eq_set, +const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { + [CHG] = { + /* CHG port connected directly to USB 3.0 hub, no mux */ + }, + [DUT] = { + /* DUT port with UFP mux */ + .mux = + &(const struct usb_mux){ + .usb_port = DUT, + .i2c_port = I2C_PORT_MASTER, + .i2c_addr_flags = TUSB1064_I2C_ADDR10_FLAGS, + .driver = &tusb1064_usb_mux_driver, + .board_set = &board_tusb1064_dp_rx_eq_set, + }, } }; |