[coreboot-gerrit] Patch set updated for coreboot: mb/lenovo/t400/romstage: Enable D1F0
Patrick Rudolph (siro@das-labor.org)
gerrit at coreboot.org
Sat Jan 21 12:11:46 CET 2017
Patrick Rudolph (siro at das-labor.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18195
-gerrit
commit d635e8ddf4466af62100c51508d08b0f13af4cf0
Author: Patrick Rudolph <siro at das-labor.org>
Date: Sat Jan 21 10:45:03 2017 +0100
mb/lenovo/t400/romstage: Enable D1F0
Enable PEG (D1F0) to make sure it can be accessed by raminit().
Change-Id: Ia3c1516c54c28bbe5a127153912c9682e975bea2
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
src/mainboard/lenovo/t400/romstage.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/mainboard/lenovo/t400/romstage.c b/src/mainboard/lenovo/t400/romstage.c
index d110d4f..013d22c 100644
--- a/src/mainboard/lenovo/t400/romstage.c
+++ b/src/mainboard/lenovo/t400/romstage.c
@@ -104,11 +104,15 @@ void mainboard_romstage_entry(unsigned long bist)
sysinfo.enable_igd = 1;
sysinfo.enable_peg = 0;
get_gmch_info(&sysinfo);
- raminit(&sysinfo, s3resume);
- const u32 deven = pci_read_config32(MCH_DEV, D0F0_DEVEN);
+ u32 deven = pci_read_config32(MCH_DEV, D0F0_DEVEN);
/* Disable D4F0 (unknown signal controller). */
- pci_write_config32(MCH_DEV, D0F0_DEVEN, deven & ~0x4000);
+ deven &= ~0x4000;
+ /* Enable D1F0 (PEG). */
+ deven |= 2;
+ pci_write_config32(MCH_DEV, D0F0_DEVEN, deven);
+
+ raminit(&sysinfo, s3resume);
init_pm(&sysinfo, 0);
More information about the coreboot-gerrit
mailing list