<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28699">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/sifive/fu540: Document #if ENV_ROMSTAGE line<br><br>Change-Id: Idcd72c558e46637b1b99e9613963436fedd4a8b9<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/soc/sifive/fu540/clock.c<br>1 file changed, 2 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/28699/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/sifive/fu540/clock.c b/src/soc/sifive/fu540/clock.c</span><br><span>index eb7a8b5..20dce23 100644</span><br><span>--- a/src/soc/sifive/fu540/clock.c</span><br><span>+++ b/src/soc/sifive/fu540/clock.c</span><br><span>@@ -121,8 +121,8 @@</span><br><span> // 33.33 Mhz after reset</span><br><span> #define FU540_BASE_FQY 33330</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Clock initialization should only be done in romstage. */</span><br><span> #if ENV_ROMSTAGE</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> static void init_coreclk(void)</span><br><span> {</span><br><span>    // switch coreclk to input reference frequency before modifying PLL</span><br><span>@@ -240,8 +240,7 @@</span><br><span>    for (int i = 0; i < 256; i++)</span><br><span>             asm volatile ("nop");</span><br><span> }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(120, 100%, 40%);">+#endif /* ENV_ROMSTAGE */</span><br><span> </span><br><span> int clock_get_coreclk_khz(void)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28699">change 28699</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/28699"/><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: Idcd72c558e46637b1b99e9613963436fedd4a8b9 </div>
<div style="display:none"> Gerrit-Change-Number: 28699 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>