[coreboot-gerrit] New patch to review for coreboot: nb/intel/haswell: Hook up libgfxinit

Arthur Heymans (arthur@aheymans.xyz) gerrit at coreboot.org
Sun Dec 18 16:07:54 CET 2016


Arthur Heymans (arthur at aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17915

-gerrit

commit ff58790d8c96b5a47a7049f2bd3967d88ef3d9e2
Author: Arthur Heymans <arthur at aheymans.xyz>
Date:   Sun Dec 18 16:03:52 2016 +0100

    nb/intel/haswell: Hook up libgfxinit
    
    Change-Id: I55e2d99b3f9929703f34d268f4490f3c5c2c766f
    Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
 src/northbridge/intel/haswell/gma.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/northbridge/intel/haswell/gma.c b/src/northbridge/intel/haswell/gma.c
index 04fa6da..83af462 100644
--- a/src/northbridge/intel/haswell/gma.c
+++ b/src/northbridge/intel/haswell/gma.c
@@ -425,6 +425,7 @@ static void gma_func0_init(struct device *dev)
 #if CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT
 	struct northbridge_intel_haswell_config *conf = dev->chip_info;
 	struct intel_dp dp;
+	u8 *mmiobase;
 #endif
 
 	int lightup_ok = 0;
@@ -455,12 +456,18 @@ static void gma_func0_init(struct device *dev)
 	dp.panel_power_down_delay = conf->gpu_panel_power_down_delay;
 	dp.panel_power_up_delay = conf->gpu_panel_power_up_delay;
 	dp.panel_power_cycle_delay = conf->gpu_panel_power_cycle_delay;
+	mmiobase = res2mmio(&dev->resource_list[0], 0, 0);
 
 #if IS_ENABLED(CONFIG_CHROMEOS)
 	init_fb = display_init_required();
 #endif
+	if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) {
+		gma_gfxinit((uintptr_t)mmiobase, (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");



More information about the coreboot-gerrit mailing list