From 23cda34782c69b70c23f04dbe5618727874cd394 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sun, 18 Dec 2016 16:03:52 +0100 Subject: nb/intel/haswell: Hook up libgfxinit Change-Id: I55e2d99b3f9929703f34d268f4490f3c5c2c766f Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/17915 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/northbridge/intel/haswell/gma.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/northbridge/intel/haswell/gma.c b/src/northbridge/intel/haswell/gma.c index 04fa6dacae..31e3cb68d9 100644 --- a/src/northbridge/intel/haswell/gma.c +++ b/src/northbridge/intel/haswell/gma.c @@ -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"); -- cgit v1.2.3