diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-08-16 10:59:02 +0200 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-08-16 15:06:39 +0200 |
commit | 56ae8a0b0faf1ca009e977dbd05cd9f0ea3fc2eb (patch) | |
tree | 9299f90a99ce7562fef4af107294db610f4242a9 /src/mainboard | |
parent | 084ed45a95a6afaf238572259e976d01320cf08b (diff) | |
download | coreboot-56ae8a0b0faf1ca009e977dbd05cd9f0ea3fc2eb.tar.xz |
gm45: Decrease MTRR usage
Change-Id: I4c790b0eaf2af94286e6691281fcad3d14659a99
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6687
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/lenovo/x200/romstage.c | 5 | ||||
-rw-r--r-- | src/mainboard/roda/rk9/romstage.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/mainboard/lenovo/x200/romstage.c b/src/mainboard/lenovo/x200/romstage.c index 816fde4222..dcb4e16415 100644 --- a/src/mainboard/lenovo/x200/romstage.c +++ b/src/mainboard/lenovo/x200/romstage.c @@ -126,13 +126,14 @@ void main(unsigned long bist) /* RAM initialization */ enter_raminit_or_reset(); + memset(&sysinfo, 0, sizeof(sysinfo)); sysinfo.spd_map[0] = 0x50; sysinfo.spd_map[2] = 0x51; + sysinfo.enable_igd = 1; + sysinfo.enable_peg = 0; get_gmch_info(&sysinfo); raminit(&sysinfo, s3resume); - raminit_thermal(&sysinfo); - init_igd(&sysinfo, 0, 1); /* Enable IGD, disable PEG. */ const u32 deven = pci_read_config32(MCH_DEV, D0F0_DEVEN); /* Disable D4F0 (unknown signal controller). */ pci_write_config32(MCH_DEV, D0F0_DEVEN, deven & ~0x4000); diff --git a/src/mainboard/roda/rk9/romstage.c b/src/mainboard/roda/rk9/romstage.c index 405d75e848..c8b75e0ed0 100644 --- a/src/mainboard/roda/rk9/romstage.c +++ b/src/mainboard/roda/rk9/romstage.c @@ -171,15 +171,16 @@ void main(unsigned long bist) /* RAM initialization */ enter_raminit_or_reset(); + memset(&sysinfo, 0, sizeof(sysinfo)); get_gmch_info(&sysinfo); sysinfo.spd_map[0] = 0x50; sysinfo.spd_map[1] = 0; sysinfo.spd_map[2] = 0x52; sysinfo.spd_map[3] = 0; + sysinfo.enable_igd = 1; + sysinfo.enable_peg = 0; raminit(&sysinfo, s3resume); - raminit_thermal(&sysinfo); - init_igd(&sysinfo, 0, 1); /* Enable IGD, disable PEG. */ init_pm(&sysinfo, 1); i82801ix_dmi_setup(); |