diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 11:23:12 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:11:54 +0000 |
commit | e8f749338124938ec707bc7287edc0defdd341cd (patch) | |
tree | d4a58ccf1e85a6b98232960186bb19423f6a5ace /board/boten | |
parent | 5c6c768da4a74edab2187e000bbb2caecbf003b5 (diff) | |
download | chrome-ec-e8f749338124938ec707bc7287edc0defdd341cd.tar.gz |
dedede: usb_mux: Split struct usb_mux in dedede boards
Update dedede 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: Ie73f5bc250c436a2d72fdfb4c8f8707f05fba9f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779623
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/boten')
-rw-r--r-- | board/boten/board.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/board/boten/board.c b/board/boten/board.c index 6c88b98782..c47b9e46f0 100644 --- a/board/boten/board.c +++ b/board/boten/board.c @@ -195,12 +195,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { }; /* USB Muxes */ -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_C0, - .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS, - .driver = &it5205_usb_mux_driver, + .mux = + &(const struct usb_mux){ + .usb_port = 0, + .i2c_port = I2C_PORT_USB_C0, + .i2c_addr_flags = IT5205_I2C_ADDR1_FLAGS, + .driver = &it5205_usb_mux_driver, + }, }, }; |