HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40331 )
Change subject: nb/i945: Don't hardcode 'integrated_graphics' to 1 ......................................................................
nb/i945: Don't hardcode 'integrated_graphics' to 1
Read GGC register to test if IGD VGA is disabled or not.
Change-Id: I864904ee726e008914170fa9c6f3a24a58242ae6 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/northbridge/intel/i945/raminit.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/40331/1
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index f26fac6..730b56a 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -2146,7 +2146,7 @@ u8 reg8; u16 reg16; u32 reg32; - int integrated_graphics = 1; + int integrated_graphics = pci_read_config16(pcidev_on_root(0, 0), GGC) & 2; int i;
reg32 = MCHBAR32(C0DRT2);