summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t430
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-06-08 18:22:11 +0200
committerMartin Roth <martinroth@google.com>2017-06-16 16:14:36 +0200
commitea6f7006325cbff9f5d7306a18656c6b5d321a4c (patch)
tree4df1899f12642ed83ceae79380385bbd693cf4ee /src/mainboard/lenovo/t430
parentd3b15c782112bd35bb507a02a5de3a6bb897dca2 (diff)
downloadcoreboot-ea6f7006325cbff9f5d7306a18656c6b5d321a4c.tar.xz
mb/lenovo/t430: Enable libgfxinit
Enable libgfxinit. Tested on Lenovo T430: * LVDS * VGA * DP (using DP->HDMI adapter) All three ports are working. The LVDS port is garbled under linux when VGA or DP is connected, likely due to missing VBT. Change-Id: I665661e93724072d1e8412cfcc0e818f824c8cb0 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20117 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/lenovo/t430')
-rw-r--r--src/mainboard/lenovo/t430/Kconfig2
-rw-r--r--src/mainboard/lenovo/t430/Makefile.inc2
-rw-r--r--src/mainboard/lenovo/t430/gma-mainboard.ads20
3 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/t430/Kconfig b/src/mainboard/lenovo/t430/Kconfig
index ea46e23862..df22c3e904 100644
--- a/src/mainboard/lenovo/t430/Kconfig
+++ b/src/mainboard/lenovo/t430/Kconfig
@@ -22,6 +22,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select USE_NATIVE_RAMINIT
select ENABLE_VMX
select DRIVERS_LENOVO_HYBRID_GRAPHICS
+ select MAINBOARD_HAS_LIBGFXINIT
+ select GFX_GMA_INTERNAL_IS_LVDS
config HAVE_IFD_BIN
bool
diff --git a/src/mainboard/lenovo/t430/Makefile.inc b/src/mainboard/lenovo/t430/Makefile.inc
index ae84209fa7..794b5cde2d 100644
--- a/src/mainboard/lenovo/t430/Makefile.inc
+++ b/src/mainboard/lenovo/t430/Makefile.inc
@@ -2,3 +2,5 @@ romstage-y += romstage.c
romstage-y += gpio.c
ramstage-y += acpi_tables.c
smm-y += smihandler.c
+
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
diff --git a/src/mainboard/lenovo/t430/gma-mainboard.ads b/src/mainboard/lenovo/t430/gma-mainboard.ads
new file mode 100644
index 0000000000..736dce71e0
--- /dev/null
+++ b/src/mainboard/lenovo/t430/gma-mainboard.ads
@@ -0,0 +1,20 @@
+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,
+ DP2,
+ DP3,
+ HDMI1,
+ HDMI2,
+ HDMI3,
+ Analog,
+ Internal,
+ others => Disabled);
+
+end GMA.Mainboard;