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>
This commit is contained in:
parent
4ba7b26019
commit
3e3bae03cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue