<p>Kevin Cody-Little has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26206">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">agesa: add init_tpm() to romstage, conditionally<br><br>It's understood that where this call belongs is currently under<br>re-architecting, and this patch will not be accepted. This change<br>or its replacement is required for the following asus/am1i-a board<br>fixes to enable the TPM, and is provided as a conceptual placeholder<br>until the proper solution is determined.<br><br>Change-Id: Ide946fa45c3b890fdf3db8fb1a410568c01cc815<br>Signed-off-by: Kevin Cody-Little <kcodyjr@gmail.com><br>---<br>M src/drivers/amd/agesa/romstage.c<br>1 file changed, 8 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/06/26206/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/drivers/amd/agesa/romstage.c b/src/drivers/amd/agesa/romstage.c</span><br><span>index 197a007..4c319e6 100644</span><br><span>--- a/src/drivers/amd/agesa/romstage.c</span><br><span>+++ b/src/drivers/amd/agesa/romstage.c</span><br><span>@@ -29,6 +29,10 @@</span><br><span> #include <northbridge/amd/agesa/agesa_helper.h></span><br><span> #include <northbridge/amd/agesa/state_machine.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#if IS_ENABLED(CONFIG_LPC_TPM)</span><br><span style="color: hsl(120, 100%, 40%);">+#include <security/tpm/tis.h></span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #if IS_ENABLED(CONFIG_LATE_CBMEM_INIT)</span><br><span> #error "Only EARLY_CBMEM_INIT is supported."</span><br><span> #endif</span><br><span>@@ -112,6 +116,10 @@</span><br><span> </span><br><span>      romstage_handoff_init(cb->s3resume);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#if IS_ENABLED(CONFIG_LPC_TPM)</span><br><span style="color: hsl(120, 100%, 40%);">+   init_tpm(cb->s3resume);</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         postcar_frame_init(&pcf, HIGH_ROMSTAGE_STACK_SIZE);</span><br><span>      recover_postcar_frame(&pcf, cb->s3resume);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26206">change 26206</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/26206"/><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: Ide946fa45c3b890fdf3db8fb1a410568c01cc815 </div>
<div style="display:none"> Gerrit-Change-Number: 26206 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Cody-Little <kcodyjr@gmail.com> </div>