Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nitheesh Sekar | 69cc491 | 2019-03-27 13:14:02 +0530 | [diff] [blame] | 2 | |
| 3 | #include <arch/stages.h> |
| 4 | #include <soc/usb.h> |
| 5 | |
| 6 | static void prepare_usb(void) |
| 7 | { |
| 8 | /* |
| 9 | * Do DWC3 core and phy reset. Kick these resets off early |
Martin Roth | 50863da | 2021-10-01 14:37:30 -0600 | [diff] [blame^] | 10 | * so they get at least 1msec to settle. |
Nitheesh Sekar | 69cc491 | 2019-03-27 13:14:02 +0530 | [diff] [blame] | 11 | */ |
| 12 | reset_usb(HSUSB_HS_PORT_1); |
| 13 | } |
| 14 | |
| 15 | void platform_romstage_main(void) |
| 16 | { |
| 17 | prepare_usb(); |
| 18 | } |