[coreboot-gerrit] New patch to review for coreboot: 9d51ba1 lenovo/x60: Fix build issue with DO_NATIVE_VGA_INIT

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Sat May 31 16:35:08 CEST 2014


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5893

-gerrit

commit 9d51ba1d74c1f03c16656282511a926294c0f3c9
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Sat May 31 17:08:40 2014 +0300

    lenovo/x60: Fix build issue with DO_NATIVE_VGA_INIT
    
    Use the value from hardware for uma_memory_base.
    
    Change-Id: I70351166db6634ef3bca2bf12051ccc3730cab8e
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 src/northbridge/intel/i945/gma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c
index 453e9c8..cddf09e 100644
--- a/src/northbridge/intel/i945/gma.c
+++ b/src/northbridge/intel/i945/gma.c
@@ -64,6 +64,7 @@ static void gma_func0_init(struct device *dev)
 	);
 
 	int i915lightup(u32 physbase, u32 iobase, u32 mmiobase, u32 gfx);
+	u32 uma_memory_base = pci_read_config32(dev, BSM) & ~((1<<20) - 1);
 	int lightup_ok = i915lightup(uma_memory_base, iobase, mmiobase, graphics_base);
 	if (lightup_ok)
 		gfx_set_init_done(1);



More information about the coreboot-gerrit mailing list