aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/kontron
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-10-19 13:41:42 +0200
committerNico Huber <nico.h@gmx.de>2016-11-29 23:48:06 +0100
commit6d4a34156498f997b9f9ce71a686c07aa8147a03 (patch)
treeb6536a54513893dedf08aeef7b212d3d8a4dd6cc /src/mainboard/kontron
parent88c6487c34b72d2355c7ce0e322e8c8365a2c567 (diff)
mb/kontron/ktqm77: Enable native gfx init through libgfxinit
Change-Id: Ie16b3236e7378a2062b3081e4530d7a4791b4b66 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/17074 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard/kontron')
-rw-r--r--src/mainboard/kontron/ktqm77/Kconfig3
-rw-r--r--src/mainboard/kontron/ktqm77/Makefile.inc2
-rw-r--r--src/mainboard/kontron/ktqm77/gma-mainboard.ads21
3 files changed, 26 insertions, 0 deletions
diff --git a/src/mainboard/kontron/ktqm77/Kconfig b/src/mainboard/kontron/ktqm77/Kconfig
index 77ad91bdd0..115a0faca7 100644
--- a/src/mainboard/kontron/ktqm77/Kconfig
+++ b/src/mainboard/kontron/ktqm77/Kconfig
@@ -12,6 +12,9 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_OPTION_TABLE
select HAVE_ACPI_RESUME
select ENABLE_VMX
+ select MAINBOARD_HAS_LIBGFXINIT
+ select GFX_GMA_ANALOG_I2C_HDMI_B
+ select GFX_GMA_INTERNAL_IS_LVDS
config MAINBOARD_DIR
string
diff --git a/src/mainboard/kontron/ktqm77/Makefile.inc b/src/mainboard/kontron/ktqm77/Makefile.inc
index 3dae61e8a8..ea035d3876 100644
--- a/src/mainboard/kontron/ktqm77/Makefile.inc
+++ b/src/mainboard/kontron/ktqm77/Makefile.inc
@@ -1 +1,3 @@
romstage-y += gpio.c
+
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
diff --git a/src/mainboard/kontron/ktqm77/gma-mainboard.ads b/src/mainboard/kontron/ktqm77/gma-mainboard.ads
new file mode 100644
index 0000000000..cf866174d8
--- /dev/null
+++ b/src/mainboard/kontron/ktqm77/gma-mainboard.ads
@@ -0,0 +1,21 @@
+with HW.GFX.GMA;
+
+use HW.GFX.GMA;
+
+private package GMA.Mainboard is
+
+ -- For a three-pipe setup, bandwidth is shared between the 2nd and
+ -- the 3rd pipe (if it's not eDP). Thus, probe ports that likely
+ -- have a high-resolution display attached first, `Internal` last.
+
+ ports : constant Port_List :=
+ (DP2,
+ DP3,
+ Digital1,
+ Digital2,
+ Digital3,
+ Analog,
+ Internal,
+ others => Disabled);
+
+end GMA.Mainboard;