[coreboot-gerrit] New patch to review for coreboot: Hook up libgfxinit in sandybridge

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Sun Oct 9 12:43:17 CEST 2016


Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16953

-gerrit

commit 5a17b12e7b97fcc32800889568399010989b85d2
Author: Nico Huber <nico.huber at secunet.com>
Date:   Wed Oct 5 18:02:01 2016 +0200

    Hook up libgfxinit in sandybridge
    
    Change-Id: I4288193c022cc0963b926b4b43834c222e41bb0d
    Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
 src/northbridge/intel/sandybridge/gma.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/northbridge/intel/sandybridge/gma.c b/src/northbridge/intel/sandybridge/gma.c
index bd0de4a..f0d96ce 100644
--- a/src/northbridge/intel/sandybridge/gma.c
+++ b/src/northbridge/intel/sandybridge/gma.c
@@ -591,8 +591,14 @@ static void gma_func0_init(struct device *dev)
 		physbase = pci_read_config32(dev, 0x5c) & ~0xf;
 		graphics_base = dev->resource_list[1].base;
 
-		int lightup_ok = i915lightup_sandy(&conf->gfx, physbase, iobase,
-						   mmiobase, graphics_base);
+		int lightup_ok;
+		if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) {
+			gma_gfxinit((uintptr_t)mmiobase, graphics_base,
+				    physbase, &lightup_ok);
+		} else {
+			lightup_ok = i915lightup_sandy(&conf->gfx, physbase,
+					iobase, mmiobase, graphics_base);
+		}
 		if (lightup_ok)
 			gfx_set_init_done(1);
 	}



More information about the coreboot-gerrit mailing list