diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-20 11:47:04 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 11:13:00 +0000 |
commit | 331aa7b7a710a288fa01a03d7c1736c6f91d35ca (patch) | |
tree | 8d318e755d6f04b08520f475aa6a048f019d94a2 | |
parent | bd25ac35ece10b0cf67ca071ba21c9f12beb8e5d (diff) | |
download | chrome-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>
-rw-r--r-- | board/bellis/board.c | 15 | ||||
-rw-r--r-- | board/burnet/board.c | 15 | ||||
-rw-r--r-- | board/cerise/board.c | 15 | ||||
-rw-r--r-- | board/damu/board.c | 15 | ||||
-rw-r--r-- | board/fennel/board.c | 15 | ||||
-rw-r--r-- | board/jacuzzi/board.c | 15 | ||||
-rw-r--r-- | board/kappa/board.c | 15 | ||||
-rw-r--r-- | board/makomo/board.c | 15 | ||||
-rw-r--r-- | board/munna/board.c | 15 | ||||
-rw-r--r-- | board/pico/board.c | 15 | ||||
-rw-r--r-- | board/stern/board.c | 15 | ||||
-rw-r--r-- | board/willow/board.c | 15 |
12 files changed, 108 insertions, 72 deletions
diff --git a/board/bellis/board.c b/board/bellis/board.c index 595f32d98b..e03ae1c36c 100644 --- a/board/bellis/board.c +++ b/board/bellis/board.c @@ -165,13 +165,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, + }, }, }; diff --git a/board/burnet/board.c b/board/burnet/board.c index 6793ac74d9..aa378ca289 100644 --- a/board/burnet/board.c +++ b/board/burnet/board.c @@ -167,13 +167,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, + }, }, }; diff --git a/board/cerise/board.c b/board/cerise/board.c index 585af3e82d..e3fa60c76a 100644 --- a/board/cerise/board.c +++ b/board/cerise/board.c @@ -165,13 +165,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, + }, }, }; diff --git a/board/damu/board.c b/board/damu/board.c index 13f2b38653..ddc8885e22 100644 --- a/board/damu/board.c +++ b/board/damu/board.c @@ -165,13 +165,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, + }, }, }; diff --git a/board/fennel/board.c b/board/fennel/board.c index bfd088ffca..563f680dee 100644 --- a/board/fennel/board.c +++ b/board/fennel/board.c @@ -166,13 +166,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, + }, }, }; diff --git a/board/jacuzzi/board.c b/board/jacuzzi/board.c index 2c865f1dc5..129b75f8e2 100644 --- a/board/jacuzzi/board.c +++ b/board/jacuzzi/board.c @@ -173,13 +173,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, + }, }, }; diff --git a/board/kappa/board.c b/board/kappa/board.c index 7b3db6b259..c04b24d3ed 100644 --- a/board/kappa/board.c +++ b/board/kappa/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, + }, }, }; diff --git a/board/makomo/board.c b/board/makomo/board.c index 88d25d5f18..24b34d9a75 100644 --- a/board/makomo/board.c +++ b/board/makomo/board.c @@ -164,13 +164,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, + }, }, }; diff --git a/board/munna/board.c b/board/munna/board.c index be3baad8df..f6996b8460 100644 --- a/board/munna/board.c +++ b/board/munna/board.c @@ -165,13 +165,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, + }, }, }; diff --git a/board/pico/board.c b/board/pico/board.c index a2d120c7f3..f884545b6d 100644 --- a/board/pico/board.c +++ b/board/pico/board.c @@ -266,13 +266,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, + }, }, }; diff --git a/board/stern/board.c b/board/stern/board.c index bc90202edf..26576ede86 100644 --- a/board/stern/board.c +++ b/board/stern/board.c @@ -165,13 +165,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, + }, }, }; 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, + }, }, }; |