summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-02-14 13:22:10 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-16 08:14:22 +0000
commit8f20b12c95804cd9e390f709b69796979f43df62 (patch)
tree5af4db8b5f269fc23b0dd9e7279daf00bc303813 /src/northbridge
parentdb4719f0396854dfca4018487a6ed1580426f7ff (diff)
nb/i945/raminit.c: Don't hard code 'bool integrated_graphics'
Change-Id: I735fa6413128cb9c17d99dfe9ffc3ee93ede51ae Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49597 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/intel/i945/raminit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c
index a1a9a9c0b6..acb009f5b1 100644
--- a/src/northbridge/intel/i945/raminit.c
+++ b/src/northbridge/intel/i945/raminit.c
@@ -2124,6 +2124,9 @@ static void sdram_power_management(struct sys_info *sysinfo)
int integrated_graphics = 1;
int i;
+ if (!(pci_read_config8(HOST_BRIDGE, DEVEN) & (DEVEN_D2F0 | DEVEN_D2F1)))
+ integrated_graphics = false;
+
reg32 = MCHBAR32(C0DRT2);
reg32 &= 0xffffff00;
/* Idle timer = 8 clocks, CKE idle timer = 16 clocks */