<p>Marc Jones has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22793">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/common: Add amdblocks/spi.h<br><br>Add the spi header for spi function prototypes. Fixes spi.c build<br>error for the missing header.<br><br>Change-Id: I0dbb5bf84cc3462a7aa58a5531d6b8b8bc8ca4df<br>Signed-off-by: Marc Jones <marcj303@gmail.com><br>---<br>A src/soc/amd/common/block/include/amdblocks/spi.h<br>M src/soc/amd/common/spi.c<br>2 files changed, 24 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/93/22793/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/common/block/include/amdblocks/spi.h b/src/soc/amd/common/block/include/amdblocks/spi.h<br>new file mode 100644<br>index 0000000..1825f62<br>--- /dev/null<br>+++ b/src/soc/amd/common/block/include/amdblocks/spi.h<br>@@ -0,0 +1,23 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 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 __AMD_SPI_H__<br>+#define __AMD_SPI_H__<br>+<br>+#include <stdint.h><br>+<br>+void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len);<br>+<br>+#endif /* __AMD_SPI_H__ */<br>diff --git a/src/soc/amd/common/spi.c b/src/soc/amd/common/spi.c<br>index 44c86e6..f72416a 100644<br>--- a/src/soc/amd/common/spi.c<br>+++ b/src/soc/amd/common/spi.c<br>@@ -16,7 +16,7 @@<br> #include <console/console.h><br> #include <spi-generic.h><br> #include <spi_flash.h><br>-#include "s3_resume.h"<br>+#include <amdblocks/spi.h><br> <br> void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len)<br> {<br></pre><p>To view, visit <a href="https://review.coreboot.org/22793">change 22793</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/22793"/><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: I0dbb5bf84cc3462a7aa58a5531d6b8b8bc8ca4df </div>
<div style="display:none"> Gerrit-Change-Number: 22793 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marc Jones <marc@marcjonesconsulting.com> </div>