<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22647">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">WIP vc/amd/pi/00670F00: Reintroduce FCH restore functions<br><br>Recover the source that had been stripped out when S3 wasn't<br>supported.<br><br>Change-Id: I584147c756c5939254fbff02cd2b6368d705e82c<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/common/agesawrapper.h<br>M src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c<br>2 files changed, 33 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/22647/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/common/agesawrapper.h b/src/soc/amd/common/agesawrapper.h<br>index a000328..f7a2fc0 100644<br>--- a/src/soc/amd/common/agesawrapper.h<br>+++ b/src/soc/amd/common/agesawrapper.h<br>@@ -52,6 +52,9 @@<br> VOID amd_initcpuio(void);<br> const void *agesawrapper_locate_module(const CHAR8 name[8]);<br> <br>+VOID FchInitS3EarlyRestore(IN FCH_DATA_BLOCK *FchDataPtr);<br>+VOID FchInitS3LateRestore(IN FCH_DATA_BLOCK *FchDataPtr);<br>+<br> void OemPostParams(AMD_POST_PARAMS *PostParams);<br> void SetMemParams(AMD_POST_PARAMS *PostParams);<br> <br>diff --git a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c<br>index ec414b4..bf74df2 100644<br>--- a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c<br>+++ b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c<br>@@ -367,3 +367,33 @@<br>       Dispatcher = module->ModuleDispatcher;<br>     return Dispatcher(AmdGetDataEye);<br> }<br>+<br>+/**********************************************************************<br>+ * FCH Functions<br>+ **********************************************************************/<br>+<br>+VOID<br>+FchInitS3EarlyRestore (<br>+  IN      FCH_DATA_BLOCK     *FchDataPtr<br>+  )<br>+{<br>+    MODULE_ENTRY Dispatcher = NULL;<br>+      const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);<br>+      FchDataPtr->StdHeader->Func = FCH_INIT_S3_EARLY_RESTORE;<br>+       if (!module) return;<br>+ Dispatcher = module->ModuleDispatcher;<br>+    Dispatcher(FchDataPtr);<br>+}<br>+<br>+VOID<br>+FchInitS3LateRestore (<br>+  IN      FCH_DATA_BLOCK     *FchDataPtr<br>+  )<br>+{<br>+  MODULE_ENTRY Dispatcher = NULL;<br>+      const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);<br>+      FchDataPtr->StdHeader->Func = FCH_INIT_S3_LATE_RESTORE;<br>+        if (!module) return;<br>+ Dispatcher = module->ModuleDispatcher;<br>+    Dispatcher(FchDataPtr);<br>+}<br></pre><p>To view, visit <a href="https://review.coreboot.org/22647">change 22647</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22647"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I584147c756c5939254fbff02cd2b6368d705e82c </div>
<div style="display:none"> Gerrit-Change-Number: 22647 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>