mb/google/bluey/quartz: Adjust PS8820 init sequence

List of changes:
- Increase the delay between romstage and ramstage GPIO init sequence.
- Delay the USB host initialization to meet the timing requirements.

BUG=b:475214332
TEST=Verify USB 3.0 storage key detection on Google/Quartz.

Change-Id: Ib6044b1e65fe0fe2fde5b688a9491d6e3fc75727
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90758
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kapil Porwal 2026-01-14 17:50:26 +05:30 committed by Matt DeVillier
commit 18ffcafa61
2 changed files with 14 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#include <boot/coreboot_tables.h>
#include <bootmode.h>
#include <bootstate.h>
#include <cbmem.h>
#include <commonlib/bsd/cbmem_id.h>
#include <commonlib/coreboot_tables.h>
@ -93,9 +94,19 @@ static void setup_usb(void)
setup_usb_typec();
enable_usb_camera();
}
static void setup_usb_late(void *unused)
{
/* Skip USB initialization if boot mode is "low-battery" or "off-mode charging"*/
if (is_low_power_boot())
return;
setup_usb_host0();
}
BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_EXIT, setup_usb_late, NULL);
void lb_add_boot_mode(struct lb_header *header)
{
if (!CONFIG(EC_GOOGLE_CHROMEEC))

View file

@ -101,6 +101,9 @@ static void early_setup_usb(void)
void platform_romstage_main(void)
{
/* Setup early USB related config */
early_setup_usb();
/* Watchdog must be checked first to avoid erasing watchdog info later. */
check_wdog();
@ -120,9 +123,6 @@ void platform_romstage_main(void)
qclib_rerun();
/* Setup early USB related config */
early_setup_usb();
/*
* Enable this power rail now for FPMCU stability prior to
* its reset being deasserted in ramstage. This applies