UPSTREAM: 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.

BUG=none
BRANCH=none
TEST=none

Change-Id: I998a9b958a273de7331c9ac74a4e15b43be8b0b1
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: ea6f700632
Original-Change-Id: I665661e93724072d1e8412cfcc0e818f824c8cb0
Original-Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Original-Reviewed-on: https://review.coreboot.org/20117
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/539225
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
Patrick Rudolph 2017-06-08 18:22:11 +02:00 committed by chrome-bot
commit 7ccfc8a705
3 changed files with 24 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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;