summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@gmx.at>2018-09-03 19:02:13 +0200
committerFelix Held <felix-coreboot@felixheld.de>2018-09-05 13:08:21 +0000
commit3e3bae03cffba8d997cb8816b71828f1bc1d244a (patch)
tree89aebc6d51aeade256eef0c16f8b4629e4aae96b
parent4ba7b26019235d82b4c84361552ab6dff5766762 (diff)
downloadcoreboot-3e3bae03cffba8d997cb8816b71828f1bc1d244a.tar.xz
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 <stefan.tauner@gmx.at> Reviewed-on: https://review.coreboot.org/28447 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/northbridge/intel/x4x/gma.c2
1 files changed, 1 insertions, 1 deletions
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) {