[coreboot-gerrit] Change in coreboot[master]: WIP amd/stoneyridge: Add FCH restore functions

Marshall Dawson (Code Review) gerrit at coreboot.org
Wed Feb 7 01:44:18 CET 2018


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/23629


Change subject: WIP amd/stoneyridge: Add FCH restore functions
......................................................................

WIP amd/stoneyridge: Add FCH restore functions

This is currently a placeholder which mimics the traditional methodology
for reinitializing the FCH during a resume.  It will be unnecessary if
AGESA is modified to execute these steps internally.

Change-Id: I12e302d8d690725d87caf63211eec7fcd67a7b0a
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/soc/amd/stoneyridge/chip.c
M src/soc/amd/stoneyridge/northbridge.c
2 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/23629/1

diff --git a/src/soc/amd/stoneyridge/chip.c b/src/soc/amd/stoneyridge/chip.c
index f5efcfd..f95fc1d 100644
--- a/src/soc/amd/stoneyridge/chip.c
+++ b/src/soc/amd/stoneyridge/chip.c
@@ -123,6 +123,11 @@
 		post_code(0x46);
 		do_agesawrapper(agesawrapper_amds3laterestore,
 						"amds3laterestore");
+
+		/* Begin the FCH restore */
+		post_code(0x47);
+		do_agesawrapper(agesawrapper_fchs3earlyrestore,
+						"fchs3earlyrestore");
 	}
 }
 
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index 2449077..c78d113 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -429,6 +429,9 @@
 	/* Must be called after PCI enumeration and resource allocation */
 	if (!romstage_handoff_is_resume())
 		do_agesawrapper(agesawrapper_amdinitmid, "amdinitmid");
+	else
+		do_agesawrapper(agesawrapper_fchs3laterestore,
+						"fchs3laterestore");
 }
 
 void domain_set_resources(device_t dev)

-- 
To view, visit https://review.coreboot.org/23629
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12e302d8d690725d87caf63211eec7fcd67a7b0a
Gerrit-Change-Number: 23629
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180207/6ac1b640/attachment.html>


More information about the coreboot-gerrit mailing list