coreboot/src/soc/intel
Subrata Banik 1e58a16264 soc/intel/cmn/gfx: Add API to report presence of external display
This patch implements an API to report the presence of an external
display on Intel silicon. The API uses information from the transcoder
and framebuffer to determine if an external display is connected.

For example, if the transcoder is attached to any DDI ports other than
DDI-A (eDP), and the framebuffer is initialized, then it is likely
that an external display is present.

This information can be used by payloads to determine whether or not
to power on the display, even if eDP is not initialized.

BUG=b:299137940
TEST=Build and boot google/rex

Scenarios:

Booting with eDP alone: has_external_display value is 0
Booting with eDP + HDMI: has_external_display value is 0
Booting with HDMI alone: has_external_display value is 1
Booting with USB-C display alone: has_external_display value is 1

Change-Id: I77436940978c7fa9368d79394b46a5e794c32e42
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78080
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
2023-10-04 18:51:10 +00:00
..
alderlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
apollolake soc/intel/apollolake: Correct the logic for the legacy 8254 timer 2023-08-25 14:38:31 +00:00
baytrail soc/intel: Remove space between function name and '(' 2023-09-11 21:39:08 +00:00
braswell soc: Remove SOC_SPECIFIC_OPTIONS 2023-08-21 23:45:43 +00:00
broadwell soc/intel: Remove space between function name and '(' 2023-09-11 21:39:08 +00:00
cannonlake soc/intel: Move USB wake methods to a common ASL file 2023-10-04 15:29:32 +00:00
common soc/intel/cmn/gfx: Add API to report presence of external display 2023-10-04 18:51:10 +00:00
denverton_ns soc/intel/denverton_ns: Remove __attribute__(()) 2023-09-17 13:31:59 +00:00
elkhartlake soc: Remove SOC_SPECIFIC_OPTIONS 2023-08-21 23:45:43 +00:00
jasperlake soc/intel/jasperlake: Enable wake from USB 2023-10-04 15:29:57 +00:00
meteorlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
skylake soc/intel: Move USB wake methods to a common ASL file 2023-10-04 15:29:32 +00:00
tigerlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
xeon_sp soc/intel/xeon_sp: Add HDA disable support 2023-09-25 16:37:39 +00:00
Makefile.inc soc/intel/Makefile.inc: Add comment where CONFIG_CSE_*_FILE are used 2023-09-22 15:48:08 +00:00