<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29150">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">console/post_codes: Add post codes for memory param prep callback<br><br>This change adds two new post codes to indicate start and end of<br>memory param preparation in callbacks to SoC/mainboard code:<br>1. 0x34: Start of memory preparation<br>2. 0x36: End of memory preparation<br><br>These post codes are already used in coreboot. This change just<br>ensures that the codes are defined in post_codes.h for easy lookup.<br><br>These post codes are useful if SoC/mainboard decides to do a reset of<br>the platform before returning back to memory initialization.<br><br>Change-Id: I065518caedb7943d960a8a5c8708823b8eb3246d<br>Signed-off-by: Furquan Shaikh <furquan@google.com><br>---<br>M src/include/console/post_codes.h<br>1 file changed, 16 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/50/29150/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h</span><br><span>index 0277337..f482ae9 100644</span><br><span>--- a/src/include/console/post_codes.h</span><br><span>+++ b/src/include/console/post_codes.h</span><br><span>@@ -82,6 +82,22 @@</span><br><span> #define POST_ENTRY_C_START                        0x13</span><br><span> </span><br><span> /**</span><br><span style="color: hsl(120, 100%, 40%);">+ * \brief Pre-memory init preparation start</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * Post code emitted in romstage before making callbacks to allow SoC/mainboard</span><br><span style="color: hsl(120, 100%, 40%);">+ * to prepare params for FSP memory init.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+#define POST_MEM_PREINIT_PREP_START          0x34</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/**</span><br><span style="color: hsl(120, 100%, 40%);">+ * \brief Pre-memory init preparation end</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * Post code emitted in romstage after returning from SoC/mainboard callbacks</span><br><span style="color: hsl(120, 100%, 40%);">+ * to prepare params for FSP memory init.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+#define POST_MEM_PREINIT_PREP_END            0x36</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/**</span><br><span>  * \brief Pre call to RAM stage main()</span><br><span>  *</span><br><span>  * POSTed right before RAM stage main() is called from c_start.S</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29150">change 29150</a>. To unsubscribe, or for help writing mail filters, 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/29150"/><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: I065518caedb7943d960a8a5c8708823b8eb3246d </div>
<div style="display:none"> Gerrit-Change-Number: 29150 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>