From abc6c7ad71d85532db725198cecab0aa282e7b50 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Sat, 14 Aug 2021 22:58:16 -0600 Subject: 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 Change-Id: Ie943dbdf03818d8497c0e328adf2b9794585d96e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095438 Commit-Queue: Abe Levkoy Reviewed-by: Abe Levkoy --- board/eldrid/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/eldrid') 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); } } -- cgit v1.2.1