/* SPDX-License-Identifier: GPL-2.0-only */ #include #include #include #include #include "board.h" static void prepare_usb(void) { /* * Do DWC3 core and phy reset. Kick these resets * off early so they get at least 1ms to settle. */ reset_usb0(); } void platform_romstage_main(void) { prepare_usb(); check_wdog(); /* QCLib: DDR init & train */ qclib_load_and_run(); /* This rail needs to be stable by the time we take the FPMCU out of reset in ramstage, so already turn it on here. This needs to happen at least 200ms after this pin was first driven low in the bootblock. */ if (CONFIG(TROGDOR_HAS_FINGERPRINT)) gpio_output(GPIO_EN_FP_RAILS, 1); }