nb/intel/haswell: Hook up libgfxinit

Change-Id: I55e2d99b3f9929703f34d268f4490f3c5c2c766f
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/17915
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans 2016-12-18 16:03:52 +01:00 committed by Martin Roth
parent 7676730b9c
commit 23cda34782
1 changed files with 8 additions and 2 deletions

View File

@ -459,8 +459,14 @@ static void gma_func0_init(struct device *dev)
#if IS_ENABLED(CONFIG_CHROMEOS)
init_fb = display_init_required();
#endif
lightup_ok = panel_lightup(&dp, init_fb);
gfx_set_init_done(1);
if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) {
gma_gfxinit(gtt_res->base, (u32)dp.graphics,
dp.physbase, &lightup_ok);
} else {
lightup_ok = panel_lightup(&dp, init_fb);
}
gfx_set_init_done(1);
#endif
if (! lightup_ok) {
printk(BIOS_SPEW, "FUI did not run; using VBIOS\n");