[coreboot-gerrit] New patch to review for coreboot: mb/lenovo/x60: Remove PCI reset code from romstage

Paul Menzel (paulepanter@users.sourceforge.net) gerrit at coreboot.org
Sat Dec 3 10:10:45 CET 2016


Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17703

-gerrit

commit 10a7f7fa7b19ec1d1a1e048524fd5c5ef37ab235
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Sat Dec 3 09:54:28 2016 +0100

    mb/lenovo/x60: Remove PCI reset code from romstage
    
    Commit bf264e94 (i945:) adds a PCI reset to the romstage, and commit
    bc8613ec (Fix i945 based boards) fixes that to use the correct
    delay of 200 ms. This code was then copied over, when adding support for
    the Lenovo X60.
    
    The reset was related to the shipped crypto card on the Roda RK886EX and
    Kontron 986LCD-M, so is not needed on the Lenovo X60. So remove it.
    
    TEST=Build and boot on Lenovo X60t.
    Change-Id: Ia37d9f0ecf5655531616edb20b53757d5d47b42f
    Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 src/mainboard/lenovo/x60/romstage.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/mainboard/lenovo/x60/romstage.c b/src/mainboard/lenovo/x60/romstage.c
index c735ce2..53a0151 100644
--- a/src/mainboard/lenovo/x60/romstage.c
+++ b/src/mainboard/lenovo/x60/romstage.c
@@ -219,11 +219,6 @@ void mainboard_romstage_entry(unsigned long bist)
 	if (bist == 0)
 		enable_lapic();
 
-	/* Force PCIRST# */
-	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, SBR);
-	udelay(200 * 1000);
-	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, 0);
-
 	/* Enable GPIOs */
 	pci_write_config32(PCI_DEV(0, 0x1f, 0), GPIOBASE, DEFAULT_GPIOBASE | 1);
 	pci_write_config8(PCI_DEV(0, 0x1f, 0), 0x4c, 0x10);  /* 0x4c == GC */



More information about the coreboot-gerrit mailing list