<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22716">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/common: Rename spi.c and add prototype<br><br>The common/spi.c file contains a function for storing S3 data into flash<br>during POST.  In preparation for supporting S3, rename the file and add<br>a prototype for the one function.  Also change its build dependency to<br>CONFIG_HAVE_ACPI_RESUME.  This will be the only mechanism for supporting<br>S3 in subsequent patches.<br><br>BUG=b:69930455<br><br>Change-Id: I6545ac1c0a04202af63be269d88c091121358bc9<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/common/Makefile.inc<br>R src/soc/amd/common/s3_resume.c<br>A src/soc/amd/common/s3_resume.h<br>3 files changed, 22 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/22716/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/common/Makefile.inc b/src/soc/amd/common/Makefile.inc<br>index aa27512..926262c 100644<br>--- a/src/soc/amd/common/Makefile.inc<br>+++ b/src/soc/amd/common/Makefile.inc<br>@@ -15,7 +15,7 @@<br> ramstage-y += amd_pci_util.c<br> ramstage-y += def_callouts.c<br> ramstage-y += heapmanager.c<br>-ramstage-$(CONFIG_SPI_FLASH) += spi.c<br>+ramstage-$(CONFIG_HAVE_ACPI_RESUME) += s3_resume.c<br> <br> subdirs-$(CONFIG_SOC_AMD_COMMON_BLOCK) += block<br> <br>diff --git a/src/soc/amd/common/spi.c b/src/soc/amd/common/s3_resume.c<br>similarity index 100%<br>rename from src/soc/amd/common/spi.c<br>rename to src/soc/amd/common/s3_resume.c<br>diff --git a/src/soc/amd/common/s3_resume.h b/src/soc/amd/common/s3_resume.h<br>new file mode 100644<br>index 0000000..39a0712<br>--- /dev/null<br>+++ b/src/soc/amd/common/s3_resume.h<br>@@ -0,0 +1,21 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2011-2017 Advanced Micro Devices, Inc.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#ifndef __S3_RESUME_H__<br>+#define __S3_RESUME_H__<br>+<br>+void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len);<br>+<br>+#endif /* __S3_RESUME_H__ */<br></pre><p>To view, visit <a href="https://review.coreboot.org/22716">change 22716</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/22716"/><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: I6545ac1c0a04202af63be269d88c091121358bc9 </div>
<div style="display:none"> Gerrit-Change-Number: 22716 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>