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>
This commit is contained in:
parent
db4719f039
commit
8f20b12c95
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue