coreboot-kgpe-d16/payloads
Subrata Banik 790b5cf442 {commonlib, libpayload}: Add "has_external_display" in coreboot table
This patch introduces a new coreboot table entry named
"has_external_display" to understand if external display is attached.

This information is useful to prevent graceful shutdown by payload
when the LID is closed but an external display is present.

This piece of the information will be gathered by coreboot and passed
into the payload using this new entry aka external_display because
payload (i.e., deptcharge) doesn't have any other way to determine
if external display is available.

BUG=b:299137940
TEST=Able to build and boot google/rex.

w/o this patch:

LID closed and external display attached (HDMI) in developer mode
  (GBB 0x39):

> System is powered off by depthcharge

w/ this patch:

LID closed and external display attached (HDMI) in developer mode
  (GBB 0x39):

> Booted to OS and device is alive/usable

Change-Id: I0fa7eee4c5a50371a7a66c6ca1ac2c7d046d010b
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77796
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-10-04 18:50:49 +00:00
..
coreinfo payloads/coreinfo: Use C99 flexible arrays 2023-08-01 12:40:59 +00:00
external payloads/edk2: Update default branch for MrChromebox repo to 2023-09 2023-09-29 20:04:16 +00:00
libpayload {commonlib, libpayload}: Add "has_external_display" in coreboot table 2023-10-04 18:50:49 +00:00
linuxcheck
nvramcui
Kconfig payloads: Make PAYLOAD_NONE a bool outside of the choice 2022-11-04 13:44:59 +00:00
Makefile.inc payloads/Yabits: Remove deprecated Yabits Payload 2023-02-17 01:21:43 +00:00