From 3e344cf731fb4c9abaf40704e6598c15894ea119 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Tue, 8 Oct 2019 17:23:55 -0500 Subject: purism/librem_bdw: hook up libgfxinit Test: build/boot Librem 13v1, 15v2 with libgfxinit Change-Id: Ia108314b6ab9a01e898e1a8b0022aa4a0d8788be Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/36108 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/mainboard/purism/librem_bdw/Kconfig | 1 + src/mainboard/purism/librem_bdw/Makefile.inc | 2 ++ src/mainboard/purism/librem_bdw/gma-mainboard.ads | 28 +++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 src/mainboard/purism/librem_bdw/gma-mainboard.ads (limited to 'src/mainboard/purism') 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; -- cgit v1.2.3