mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
cr50: add delay after soft reset
Add a delay to allow the clocks and usb signals to settle. BUG=b:63767046,b:63867566 BRANCH=cr50 TEST=put the eve ec into hibernate, wait until cr50 enters deep sleep, use the uart to wake it up, and verify that it eventually reenters deep sleep Change-Id: I26463ce3e00996368a791a245b0f9de01737478c Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/598448 Reviewed-by: Marius Schilder <mschilder@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
@@ -1209,6 +1209,15 @@ static void usb_softreset(void)
|
||||
return;
|
||||
}
|
||||
/* TODO: Wait 3 PHY clocks before returning */
|
||||
|
||||
#ifdef BOARD_CR50
|
||||
/*
|
||||
* TODO(b/63867566): This delay is added to get usb to suspend after
|
||||
* resume from deep sleep. Find out what the root cause is and add a
|
||||
* fix.
|
||||
*/
|
||||
usleep(100);
|
||||
#endif
|
||||
}
|
||||
|
||||
void usb_connect(void)
|
||||
|
||||
Reference in New Issue
Block a user