diff options
author | Diana Z <dzigterman@chromium.org> | 2021-08-14 22:58:16 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-16 17:14:04 +0000 |
commit | abc6c7ad71d85532db725198cecab0aa282e7b50 (patch) | |
tree | 49b217857e2079e69a4a7f472eddb95a83adff19 /board | |
parent | 414feb169e244b2037e6a92a45500cc73faeea08 (diff) | |
download | chrome-ec-abc6c7ad71d85532db725198cecab0aa282e7b50.tar.gz |
USB MUX: Update mux HPD update interface to use mux_state_t
Since the drivers are now taking a mux_state_t set of flags to update,
go ahead and unify the usb_mux API this way as well. It makes the
parameters more apparent than the 1/0 inputs, and aligns the stack to
use the same parameters.
BRANCH=None
BUG=b:172222942
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ie943dbdf03818d8497c0e328adf2b9794585d96e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095438
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board')
34 files changed, 72 insertions, 41 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index 8d89bee074..4881ed6898 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -221,7 +221,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/boldar/board.c b/board/boldar/board.c index abc3fecfe0..128b27b385 100644 --- a/board/boldar/board.c +++ b/board/boldar/board.c @@ -336,7 +336,8 @@ void board_reset_pd_mcu(void) /* Daughterboard specific reset for port 1 */ if (usb_db == DB_USB3_ACTIVE) { ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } } diff --git a/board/chronicler/usbc_config.c b/board/chronicler/usbc_config.c index 449179af32..b378299f86 100644 --- a/board/chronicler/usbc_config.c +++ b/board/chronicler/usbc_config.c @@ -206,7 +206,8 @@ void board_reset_pd_mcu(void) /* No reset available for TCPC on port 0 */ /* Daughterboard specific reset for port 1 */ ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } static void board_tcpc_init(void) diff --git a/board/coachz/board.c b/board/coachz/board.c index 377ce00939..d1f31a64c3 100644 --- a/board/coachz/board.c +++ b/board/coachz/board.c @@ -522,7 +522,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/collis/board.c b/board/collis/board.c index 76cffc4d22..42a0f1469a 100644 --- a/board/collis/board.c +++ b/board/collis/board.c @@ -430,8 +430,9 @@ static void ps8815_reset(int port) void board_reset_pd_mcu(void) { ps8815_reset(USBC_PORT_C0); - usb_mux_hpd_update(USBC_PORT_C0, 0, 0); + usb_mux_hpd_update(USBC_PORT_C0, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); ps8815_reset(USBC_PORT_C1); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } - diff --git a/board/coral/board.c b/board/coral/board.c index 57866f30da..a563071294 100644 --- a/board/coral/board.c +++ b/board/coral/board.c @@ -399,7 +399,8 @@ static void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_DEFAULT); diff --git a/board/delbin/board.c b/board/delbin/board.c index b1d7754992..5984c4d157 100644 --- a/board/delbin/board.c +++ b/board/delbin/board.c @@ -283,9 +283,11 @@ static void ps8815_reset(int port) void board_reset_pd_mcu(void) { ps8815_reset(USBC_PORT_C0); - usb_mux_hpd_update(USBC_PORT_C0, 0, 0); + usb_mux_hpd_update(USBC_PORT_C0, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); ps8815_reset(USBC_PORT_C1); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } /******************************************************************************/ diff --git a/board/eldrid/board.c b/board/eldrid/board.c index 90d663e6f7..601c23df84 100644 --- a/board/eldrid/board.c +++ b/board/eldrid/board.c @@ -393,7 +393,8 @@ void board_reset_pd_mcu(void) /* Daughterboard specific reset for port 1 */ if (usb_db == DB_USB3_ACTIVE) { ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } } diff --git a/board/elemi/board.c b/board/elemi/board.c index 5eab31d871..bb59308213 100644 --- a/board/elemi/board.c +++ b/board/elemi/board.c @@ -290,7 +290,8 @@ void board_reset_pd_mcu(void) /* No reset available for TCPC on port 0 */ /* Daughterboard specific reset for port 1 */ ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } __override void board_cbi_init(void) diff --git a/board/eve/board.c b/board/eve/board.c index cedcd6c5e4..f73118e8f2 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -330,7 +330,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } uint16_t tcpc_get_alert_status(void) diff --git a/board/fizz/board.c b/board/fizz/board.c index 0605b68e09..5b830b9150 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -239,7 +239,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/gimble/usbc_config.c b/board/gimble/usbc_config.c index 83042ab91e..9f9f702364 100644 --- a/board/gimble/usbc_config.c +++ b/board/gimble/usbc_config.c @@ -182,7 +182,8 @@ void board_reset_pd_mcu(void) /* Port1 */ ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } static void board_tcpc_init(void) diff --git a/board/herobrine_npcx7/usbc_config.c b/board/herobrine_npcx7/usbc_config.c index c78fe80191..3662b966e0 100644 --- a/board/herobrine_npcx7/usbc_config.c +++ b/board/herobrine_npcx7/usbc_config.c @@ -185,7 +185,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/herobrine_npcx9/usbc_config.c b/board/herobrine_npcx9/usbc_config.c index c78fe80191..3662b966e0 100644 --- a/board/herobrine_npcx9/usbc_config.c +++ b/board/herobrine_npcx9/usbc_config.c @@ -185,7 +185,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/homestar/board.c b/board/homestar/board.c index 8292a697ce..22f940eec2 100644 --- a/board/homestar/board.c +++ b/board/homestar/board.c @@ -477,7 +477,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); @@ -695,4 +696,3 @@ int battery_set_vendor_param(uint32_t param, uint32_t value) { return EC_ERROR_UNIMPLEMENTED; } - diff --git a/board/kingoftown/usbc_config.c b/board/kingoftown/usbc_config.c index f3ca3b0f2a..dddc1d87a6 100644 --- a/board/kingoftown/usbc_config.c +++ b/board/kingoftown/usbc_config.c @@ -185,7 +185,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/lazor/usbc_config.c b/board/lazor/usbc_config.c index 475162b4c3..f8c9662136 100644 --- a/board/lazor/usbc_config.c +++ b/board/lazor/usbc_config.c @@ -222,7 +222,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/lindar/board.c b/board/lindar/board.c index c9576f0e9b..030940cfb1 100644 --- a/board/lindar/board.c +++ b/board/lindar/board.c @@ -447,7 +447,8 @@ static void ps8815_reset(void) void board_reset_pd_mcu(void) { ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } /******************************************************************************/ diff --git a/board/marzipan/board.c b/board/marzipan/board.c index 26b2c286c4..915f96743d 100644 --- a/board/marzipan/board.c +++ b/board/marzipan/board.c @@ -513,7 +513,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); @@ -665,4 +666,3 @@ uint16_t tcpc_get_alert_status(void) return status; } - diff --git a/board/mrbland/board.c b/board/mrbland/board.c index b837c44861..fc48888a55 100644 --- a/board/mrbland/board.c +++ b/board/mrbland/board.c @@ -434,7 +434,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); @@ -647,4 +648,3 @@ int battery_set_vendor_param(uint32_t param, uint32_t value) { return EC_ERROR_UNIMPLEMENTED; } - diff --git a/board/nami/board.c b/board/nami/board.c index 016537e13f..c45d11bd25 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -329,7 +329,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 2); diff --git a/board/nautilus/board.c b/board/nautilus/board.c index 743beb40b0..bcdaf568e7 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -229,7 +229,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/pazquel/board.c b/board/pazquel/board.c index 190432bdfd..8d7e679190 100644 --- a/board/pazquel/board.c +++ b/board/pazquel/board.c @@ -327,7 +327,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/pompom/board.c b/board/pompom/board.c index 8978b75981..855a8c305d 100644 --- a/board/pompom/board.c +++ b/board/pompom/board.c @@ -330,7 +330,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/poppy/board.c b/board/poppy/board.c index 838c0d1724..2124faa421 100644 --- a/board/poppy/board.c +++ b/board/poppy/board.c @@ -318,7 +318,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/rammus/board.c b/board/rammus/board.c index e1d3f76268..1f88cf4388 100644 --- a/board/rammus/board.c +++ b/board/rammus/board.c @@ -260,7 +260,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/reef/board.c b/board/reef/board.c index 8bb7291449..ed8e83d0a8 100644 --- a/board/reef/board.c +++ b/board/reef/board.c @@ -393,7 +393,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/reef_it8320/board.c b/board/reef_it8320/board.c index 96fad41763..92fdc66806 100644 --- a/board/reef_it8320/board.c +++ b/board/reef_it8320/board.c @@ -224,7 +224,8 @@ static void board_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/reef_mchp/board.c b/board/reef_mchp/board.c index 98d9b4fca4..b934264510 100644 --- a/board/reef_mchp/board.c +++ b/board/reef_mchp/board.c @@ -509,7 +509,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); diff --git a/board/trogdor/usbc_config.c b/board/trogdor/usbc_config.c index f3ca3b0f2a..dddc1d87a6 100644 --- a/board/trogdor/usbc_config.c +++ b/board/trogdor/usbc_config.c @@ -185,7 +185,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); diff --git a/board/voema/board.c b/board/voema/board.c index 91dd9f144a..ef428089a4 100644 --- a/board/voema/board.c +++ b/board/voema/board.c @@ -261,7 +261,8 @@ void board_reset_pd_mcu(void) /* No reset available for TCPC on port 0 */ /* Daughterboard specific reset for port 1 */ ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } __override void board_cbi_init(void) diff --git a/board/volet/board.c b/board/volet/board.c index 603536fd68..a47bd3d8c6 100644 --- a/board/volet/board.c +++ b/board/volet/board.c @@ -326,7 +326,8 @@ void board_reset_pd_mcu(void) * already handled by the bb_retimer.c driver. */ ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } /******************************************************************************/ diff --git a/board/volteer/usbc_config.c b/board/volteer/usbc_config.c index 1fec96a2a3..4f025d4cd2 100644 --- a/board/volteer/usbc_config.c +++ b/board/volteer/usbc_config.c @@ -320,7 +320,8 @@ void board_reset_pd_mcu(void) /* Daughterboard specific reset for port 1 */ if (usb_db == DB_USB3_ACTIVE) { ps8815_reset(); - usb_mux_hpd_update(USBC_PORT_C1, 0, 0); + usb_mux_hpd_update(USBC_PORT_C1, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } } diff --git a/board/wormdingler/board.c b/board/wormdingler/board.c index 2acc1518aa..796409cb80 100644 --- a/board/wormdingler/board.c +++ b/board/wormdingler/board.c @@ -472,7 +472,8 @@ void board_tcpc_init(void) * HPD pulse to enable video path */ for (int port = 0; port < CONFIG_USB_PD_PORT_MAX_COUNT; ++port) - usb_mux_hpd_update(port, 0, 0); + usb_mux_hpd_update(port, USB_PD_MUX_HPD_LVL_DEASSERTED | + USB_PD_MUX_HPD_IRQ_DEASSERTED); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); @@ -689,4 +690,3 @@ int battery_set_vendor_param(uint32_t param, uint32_t value) { return EC_ERROR_UNIMPLEMENTED; } - |