mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
reef: sleep for 10ms when re-enabling USB_TCPC_PWR
This just fixes a bad timeout value. BUG=chrome-os-partner:53673 BRANCH=none TEST=built and booted EC firmware on reef Change-Id: If7676c85f082e390e363c8d26cc8bc97fb81e8c4 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/347067 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
e4c9e101e2
commit
de4abe07f7
@@ -171,7 +171,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
|
||||
void board_set_tcpc_power_mode(int port, int mode)
|
||||
{
|
||||
gpio_set_level(GPIO_EN_USB_TCPC_PWR, mode);
|
||||
msleep(1);
|
||||
msleep(mode ? 10 : 1);
|
||||
|
||||
/* FIXME(dhendrix): This is also connected to the PS8751 which
|
||||
* we might not want to reset just because something happened
|
||||
@@ -193,7 +193,7 @@ void board_reset_pd_mcu(void)
|
||||
msleep(10);
|
||||
|
||||
gpio_set_level(GPIO_EN_USB_TCPC_PWR, 1);
|
||||
msleep(1);
|
||||
msleep(10);
|
||||
gpio_set_level(GPIO_USB_PD_RST_ODL, 1);
|
||||
/*
|
||||
* ANX7688 needed 50ms to release RESET_N, but the ANX7428 datasheet
|
||||
|
||||
Reference in New Issue
Block a user