From 3e3bae03cffba8d997cb8816b71828f1bc1d244a Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Mon, 3 Sep 2018 19:02:13 +0200 Subject: nb/intel/x4x/gma.c: fix skipping of native graphics init CB:27984 (e6c8f7e) is supposed to skip over NGI if bit #1 in register GCC is set. However the check for x4x was wrongly checking if any bit of the whole register is set. Change-Id: I5000f5e771abb98f046e2ad19c1bee7dbc0743fc Signed-off-by: Stefan Tauner Reviewed-on: https://review.coreboot.org/28447 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Felix Held --- src/northbridge/intel/x4x/gma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/northbridge/intel/x4x') diff --git a/src/northbridge/intel/x4x/gma.c b/src/northbridge/intel/x4x/gma.c index d0c40b1d8d..1fcc682c86 100644 --- a/src/northbridge/intel/x4x/gma.c +++ b/src/northbridge/intel/x4x/gma.c @@ -74,7 +74,7 @@ static void gma_func0_init(struct device *dev) reg16 |= 0xbc; pci_write_config16(dev_find_slot(0, PCI_DEVFN(0x2, 0)), 0xcc, reg16); - int vga_disable = pci_read_config16(dev, D0F0_GGC); + int vga_disable = (pci_read_config16(dev, D0F0_GGC) & 2) >> 1; if (IS_ENABLED(CONFIG_MAINBOARD_USE_LIBGFXINIT)) { if (vga_disable) { -- cgit v1.2.3