summaryrefslogtreecommitdiff
path: root/board/copano
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-09-15 21:45:08 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-16 21:35:53 +0000
commit2f56efbce19289784ef99253c5d64b9cb65eb3c1 (patch)
treea9d2ea875ff40470723ca83717773ba9c798dfb7 /board/copano
parent932def91a81712f59202b492d2c746bb218a6299 (diff)
downloadchrome-ec-2f56efbce19289784ef99253c5d64b9cb65eb3c1.tar.gz
BB Retimer: Add new HPD callback to boards
Now that the BB retimer has its own HPD interface, add this interface to every board using the bb_usb_retimer driver. BRANCH=None BUG=b:195773400 TEST=on voxel, pass tast typec.Mode*.manual Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ia70d139431739e8f2c0577359cb3aaa7fb906d0a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163930 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/copano')
-rw-r--r--board/copano/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/copano/board.c b/board/copano/board.c
index 6992731208..9a20eee45f 100644
--- a/board/copano/board.c
+++ b/board/copano/board.c
@@ -244,6 +244,7 @@ void board_reset_pd_mcu(void)
struct usb_mux usbc0_usb4_mb_retimer = {
.usb_port = USBC_PORT_C0,
.driver = &bb_usb_retimer,
+ .hpd_update = bb_retimer_hpd_update,
.i2c_port = I2C_PORT_USB_0_MIX,
.i2c_addr_flags = USBC_PORT_C0_BB_RETIMER_I2C_ADDR,
};
@@ -357,6 +358,7 @@ struct usb_mux usb_muxes[] = {
.usb_port = USBC_PORT_C1,
.next_mux = &usbc1_tcss_usb_mux,
.driver = &bb_usb_retimer,
+ .hpd_update = bb_retimer_hpd_update,
.i2c_port = I2C_PORT_USB_1_MIX,
.i2c_addr_flags = USBC_PORT_C1_BB_RETIMER_I2C_ADDR,
},
@@ -424,4 +426,3 @@ int ppc_get_alert_status(int port)
const int usb_port_enable[USB_PORT_COUNT] = {
GPIO_EN_PP5000_USBA,
};
-