From eecd2b49cabe3eb76a532af64b8a349ac0d0a2b9 Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Fri, 30 Jan 2026 19:37:25 +0530 Subject: [PATCH] mb/google/bluey: Skip display initialization when lid is closed If the system is powered on while the lid is closed (e.g., via a power button or auto-power-on event), there is no need to initialize the internal display. Update display_startup() to check the lid state via get_lid_switch(). Skipping initialization in this state reduces unnecessary power consumption and slightly improves boot time for closed-lid scenarios. BUG=none TEST=Verify display does not initialize when lid is closed on Google/Quartz. Change-Id: I2ec48876f102b7309a1401aa9d7bdc0fdc96791a Signed-off-by: Kapil Porwal Reviewed-on: https://review.coreboot.org/c/coreboot/+/91011 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/mainboard/google/bluey/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/google/bluey/mainboard.c b/src/mainboard/google/bluey/mainboard.c index 9fff83bba7..b12edfdabe 100644 --- a/src/mainboard/google/bluey/mainboard.c +++ b/src/mainboard/google/bluey/mainboard.c @@ -140,7 +140,7 @@ bool mainboard_needs_pcie_init(void) static void display_startup(void) { - if (!display_init_required()) { + if (!display_init_required() || (CONFIG(VBOOT_LID_SWITCH) && !get_lid_switch())) { printk(BIOS_INFO, "Skipping display init.\n"); return; }