summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2019-10-08 17:23:55 -0500
committerPatrick Georgi <pgeorgi@google.com>2019-10-21 09:05:57 +0000
commit3e344cf731fb4c9abaf40704e6598c15894ea119 (patch)
tree92c80da204779e29cbb70b294f2b37fd8000a622
parent6de151e765a6f67d5195a251bbb1a23dcaca6ce0 (diff)
downloadcoreboot-3e344cf731fb4c9abaf40704e6598c15894ea119.tar.xz
purism/librem_bdw: hook up libgfxinit
Test: build/boot Librem 13v1, 15v2 with libgfxinit Change-Id: Ia108314b6ab9a01e898e1a8b0022aa4a0d8788be Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36108 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/purism/librem_bdw/Kconfig1
-rw-r--r--src/mainboard/purism/librem_bdw/Makefile.inc2
-rw-r--r--src/mainboard/purism/librem_bdw/gma-mainboard.ads28
3 files changed, 31 insertions, 0 deletions
diff --git a/src/mainboard/purism/librem_bdw/Kconfig b/src/mainboard/purism/librem_bdw/Kconfig
index 9424a7ef3b..339d7012f7 100644
--- a/src/mainboard/purism/librem_bdw/Kconfig
+++ b/src/mainboard/purism/librem_bdw/Kconfig
@@ -6,6 +6,7 @@ config BOARD_PURISM_BASEBOARD_LIBREM_BDW
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select INTEL_INT15
+ select MAINBOARD_HAS_LIBGFXINIT
select SOC_INTEL_BROADWELL
if BOARD_PURISM_BASEBOARD_LIBREM_BDW
diff --git a/src/mainboard/purism/librem_bdw/Makefile.inc b/src/mainboard/purism/librem_bdw/Makefile.inc
index 16ce37a95f..13c0af4c8d 100644
--- a/src/mainboard/purism/librem_bdw/Makefile.inc
+++ b/src/mainboard/purism/librem_bdw/Makefile.inc
@@ -16,3 +16,5 @@
romstage-y += gpio.c
romstage-y += variants/$(VARIANT_DIR)/pei_data.c
ramstage-y += variants/$(VARIANT_DIR)/pei_data.c
+
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
diff --git a/src/mainboard/purism/librem_bdw/gma-mainboard.ads b/src/mainboard/purism/librem_bdw/gma-mainboard.ads
new file mode 100644
index 0000000000..1aba615128
--- /dev/null
+++ b/src/mainboard/purism/librem_bdw/gma-mainboard.ads
@@ -0,0 +1,28 @@
+--
+-- This file is part of the coreboot project.
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+
+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 :=
+ (Internal,
+ HDMI1,
+ others => Disabled);
+
+end GMA.Mainboard;