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 <kapilporwal@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91011 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
37ef6bc245
commit
eecd2b49ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue