Redrix: Tuning TCPC reset timing
BRANCH=none
TEST=make BOARD=redrix
@@ -182,25 +182,23 @@ __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable)
void board_reset_pd_mcu(void)
{
- /*
- * TODO(b/193461268): figure out correct timing
- */
-
gpio_set_level(GPIO_USB_C0_TCPC_RST_ODL, 0);
gpio_set_level(GPIO_USB_C1_TCPC_RST_ODL, 0);
/*
* delay for power-on to reset-off and min. assertion time
*/
-
- msleep(20);
+ msleep(NCT38XX_RESET_HOLD_DELAY_MS);
gpio_set_level(GPIO_USB_C0_TCPC_RST_ODL, 1);
gpio_set_level(GPIO_USB_C1_TCPC_RST_ODL, 1);
- /* wait for chips to come up */
+ nct38xx_reset_notify(USBC_PORT_C0);
+ nct38xx_reset_notify(USBC_PORT_C1);
- msleep(50);
+ /* wait for chips to come up */
+ if (NCT38XX_RESET_POST_DELAY_MS != 0)
+ msleep(NCT38XX_RESET_POST_DELAY_MS);
}
static void board_tcpc_init(void)
