mb/google/bluey: Initialize display before low-power boot check

Currently, display_startup() is called near the end of mainboard_init.
If the system enters a low-power boot mode (such as low-battery or
off-mode charging), the function returns early, leaving the display
uninitialized.

Move display_startup() before the is_low_power_boot() check. This
ensures the display is ready to show user notifications, such as
battery status or charging icons, even when the rest of the
mainboard initialization is skipped.

TEST=Build and boot Google/Quartz.

Change-Id: Ibaa2b20d3ea1ca8548ea6ebf93efbc48cb7a6b95
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90968
Reviewed-by: Jayvik Desai <jayvik@google.com>
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-28 15:00:00 +05:30 committed by Subrata Banik
commit 642433813f

View file

@ -153,6 +153,8 @@ static void mainboard_init(struct device *dev)
{
configure_parallel_charging();
display_startup();
/* Skip mainboard initialization if boot mode is "low-battery" or "off-mode charging"*/
if (is_low_power_boot_with_charger())
return;
@ -204,8 +206,6 @@ static void mainboard_init(struct device *dev)
/* Setup USB related initial config */
setup_usb();
display_startup();
lpass_init();
}