blob: 728487a4316aa1b535dc12d12c198ab4b3e3a2ef [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Nitheesh Sekar69cc4912019-03-27 13:14:02 +05302
3#include <arch/stages.h>
4#include <soc/usb.h>
5
6static void prepare_usb(void)
7{
8 /*
9 * Do DWC3 core and phy reset. Kick these resets off early
Martin Roth50863da2021-10-01 14:37:30 -060010 * so they get at least 1msec to settle.
Nitheesh Sekar69cc4912019-03-27 13:14:02 +053011 */
12 reset_usb(HSUSB_HS_PORT_1);
13}
14
15void platform_romstage_main(void)
16{
17 prepare_usb();
18}