From 1bff742c12b0b03956241dd501e22928c2a4774e Mon Sep 17 00:00:00 2001 From: Jan Samek Date: Thu, 15 Sep 2022 17:04:49 +0200 Subject: [PATCH] mb/siemens/mc_apl7: Enable libgfxinit for the board Add the gma-mainboard.ads for display output definition and enable the libgfxinit usage in mainboard Kconfig. Change-Id: I7e7a44736a8136b5320821e744134c7d64c7f1b4 Signed-off-by: Jan Samek Reviewed-on: https://review.coreboot.org/c/coreboot/+/67683 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- .../siemens/mc_apl1/variants/mc_apl7/Kconfig | 1 + .../siemens/mc_apl1/variants/mc_apl7/Makefile.inc | 1 + .../mc_apl1/variants/mc_apl7/gma-mainboard.ads | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/mainboard/siemens/mc_apl1/variants/mc_apl7/gma-mainboard.ads diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig index baf640a11e..953dcfd484 100644 --- a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig @@ -7,6 +7,7 @@ config BOARD_SPECIFIC_OPTIONS select SOC_INTEL_SET_MIN_CLOCK_RATIO select DRIVERS_I2C_PTN3460 select PTN3460_EARLY_INIT + select MAINBOARD_HAS_LIBGFXINIT config UART_FOR_CONSOLE default 1 diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Makefile.inc b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Makefile.inc index e26339c548..ecab3ccc33 100644 --- a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Makefile.inc +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Makefile.inc @@ -4,3 +4,4 @@ romstage-y += memory.c ramstage-y += gpio.c ramstage-y += lcd_panel.c +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/gma-mainboard.ads b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/gma-mainboard.ads new file mode 100644 index 0000000000..e0a166fe55 --- /dev/null +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/gma-mainboard.ads @@ -0,0 +1,15 @@ +-- 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 := + (eDP, + others => Disabled); + +end GMA.Mainboard;