Angel Pons has uploaded this change for review.

View Change

mb/purism/librem_whl: Add libgfxinit support

Only the DisplayPort output is working as of now. The HDMI 2.0 output is
provided by a Parade DP175 LSPCON, which is internally connected to DP2.
LSPCON setup in libgfxinit is missing as of now, but will be added soon.

Change-Id: I0da26fef304583eec0375eee2082a9d2ebe27292
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
---
M src/mainboard/purism/librem_whl/Kconfig
M src/mainboard/purism/librem_whl/Makefile.inc
A src/mainboard/purism/librem_whl/gma-mainboard.ads
3 files changed, 19 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/46627/1
diff --git a/src/mainboard/purism/librem_whl/Kconfig b/src/mainboard/purism/librem_whl/Kconfig
index bc25fb5..ea79d90 100644
--- a/src/mainboard/purism/librem_whl/Kconfig
+++ b/src/mainboard/purism/librem_whl/Kconfig
@@ -6,6 +6,7 @@
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select INTEL_GMA_HAVE_VBT
+ select MAINBOARD_HAS_LIBGFXINIT
select NO_UART_ON_SUPERIO
select SOC_INTEL_COMMON_BLOCK_HDA
select SOC_INTEL_COMMON_BLOCK_HDA_VERB
diff --git a/src/mainboard/purism/librem_whl/Makefile.inc b/src/mainboard/purism/librem_whl/Makefile.inc
index ba157df..0725df5 100644
--- a/src/mainboard/purism/librem_whl/Makefile.inc
+++ b/src/mainboard/purism/librem_whl/Makefile.inc
@@ -4,4 +4,6 @@
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
ramstage-y += ramstage.c

+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
+
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include
diff --git a/src/mainboard/purism/librem_whl/gma-mainboard.ads b/src/mainboard/purism/librem_whl/gma-mainboard.ads
new file mode 100644
index 0000000..5494485
--- /dev/null
+++ b/src/mainboard/purism/librem_whl/gma-mainboard.ads
@@ -0,0 +1,16 @@
+-- SPDX-License-Identifier: GPL-2.0-or-later
+
+with HW.GFX.GMA;
+with HW.GFX.GMA.Display_Probing;
+
+use HW.GFX.GMA;
+use HW.GFX.GMA.Display_Probing;
+
+private package GMA.Mainboard is
+
+ ports : constant Port_List :=
+ (DP1, -- DisplayPort connector
+ DP2, -- HDMI connector through Parade DP175 LSPCON
+ others => Disabled);
+
+end GMA.Mainboard;

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0da26fef304583eec0375eee2082a9d2ebe27292
Gerrit-Change-Number: 46627
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newchange