[coreboot-gerrit] New patch to review for coreboot: sb/amd/sp5100: Apply Sx State Settings per RPR v3.02

Timothy Pearson (tpearson@raptorengineeringinc.com) gerrit at coreboot.org
Sun Apr 10 23:03:15 CEST 2016


Timothy Pearson (tpearson at raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14308

-gerrit

commit b15aae756628a5967ff9dc964026fdbe94d440c2
Author: Timothy Pearson <tpearson at raptorengineeringinc.com>
Date:   Sun Apr 10 16:02:42 2016 -0500

    sb/amd/sp5100: Apply Sx State Settings per RPR v3.02
    
    Change-Id: Iacf84ac7de4362e523ad9d8aa7309eecd5277480
    Signed-off-by: Timothy Pearson <tpearson at raptorengineeringinc.com>
---
 src/southbridge/amd/sb700/early_setup.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/southbridge/amd/sb700/early_setup.c b/src/southbridge/amd/sb700/early_setup.c
index 24fbb91..f809a4c 100644
--- a/src/southbridge/amd/sb700/early_setup.c
+++ b/src/southbridge/amd/sb700/early_setup.c
@@ -606,6 +606,16 @@ static void sb700_pmio_por_init(void)
 	byte |= 0x20;
 	pmio_write(0x66, byte);
 
+#if CONFIG_SOUTHBRIDGE_AMD_SUBTYPE_SP5100
+	/* RPR 2.11 Sx State Settings */
+	byte = pmio_read(0x65);
+	byte &= ~(1 << 7);		/* SpecialFunc = 0 */
+	pmio_write(0x65, byte);
+
+	byte = pmio_read(0x68);
+	byte |= 1 << 2;			/* MaskApicEn = 1 */
+	pmio_write(0x68, byte);
+#else
 	/* RPR2.31 PM_TURN_OFF_MSG during ASF Shutdown. */
 	if (get_sb700_revision(pci_locate_device(PCI_ID(0x1002, 0x4385), 0)) <= 0x12) {
 		byte = pmio_read(0x65);
@@ -641,6 +651,7 @@ static void sb700_pmio_por_init(void)
 		pmio_write(0x52, byte);
 
 	}
+#endif
 
 	/* Watch Dog Timer Control
 	 * Set watchdog time base to 0xfec000f0 to avoid SCSI card boot failure.



More information about the coreboot-gerrit mailing list