Subrata Banik has uploaded this change for review.

View Change

soc/intel/adl: Add new Kconfig ENABLE_DISPLAY_OVER_DGPU for ADLRVP with DG

This ENABLE_DISPLAY_OVER_DGPU Kconfig will allow ADLRVP to work with DG
over PCIE to get display. Also ensure to turn off running IGD
initialization using FSP GOP when ENABLE_DISPLAY_OVER_DGPU is enable.

TEST=Able to get Pre-OS splash screen with AMD Radeon RX 5700 PCI-E
DGPU when mainboard user selects ENABLE_DISPLAY_OVER_DGPU.

Change-Id: Ibbe9c8c4d77018de83815d7d203284b1fbc0da58
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
---
M src/mainboard/intel/adlrvp/devicetree.cb
M src/soc/intel/alderlake/Kconfig
2 files changed, 15 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/49291/1
diff --git a/src/mainboard/intel/adlrvp/devicetree.cb b/src/mainboard/intel/adlrvp/devicetree.cb
index cf9afaf..294fa8c 100644
--- a/src/mainboard/intel/adlrvp/devicetree.cb
+++ b/src/mainboard/intel/adlrvp/devicetree.cb
@@ -189,7 +189,11 @@
device domain 0 on
device pci 00.0 on end # Host Bridge
device pci 01.0 on end # PEG10
+#if CONFIG(ENABLE_DISPLAY_OVER_DGPU)
+ device pci 02.0 off end # Graphics
+#else
device pci 02.0 on end # Graphics
+#endif
device pci 04.0 on end # DPTF
device pci 05.0 on end # IPU
device pci 06.0 on end # PEG60
diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig
index 8009a42..df23822 100644
--- a/src/soc/intel/alderlake/Kconfig
+++ b/src/soc/intel/alderlake/Kconfig
@@ -242,4 +242,15 @@
0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
6:Enable (2-wire DCI OOB), 7:Manual
+
+config ENABLE_DISPLAY_OVER_DGPU
+ select VGA_ROM_RUN_DEFAULT
+ select MAINBOARD_NO_FSP_GOP
+ help
+ This option enables graphics initialization with external
+ graphics card by load/execute VGA OpRom without running
+ FSP GOP.
+
+ Selected by mainboard that runs OpRom to perform display
+ initialization over attached PCIe GFX card.
endif

To view, visit change 49291. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbe9c8c4d77018de83815d7d203284b1fbc0da58
Gerrit-Change-Number: 49291
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik@intel.com>
Gerrit-MessageType: newchange