<p>Martin Roth has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20564">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sb/intel/fspi89xx: Fix timestamp code<br><br>The save_timestamp_to_cmos code was used at Sage before the early<br>cbmem was available.  Update it to use the standard timestamp calls,<br>based on the rangeley implementation.<br><br>Change-Id: I9a3a6609bdc8d03c4b86951daa1cafddd9c1332e<br>Signed-off-by: Martin Roth <martinroth@google.com><br>---<br>M src/southbridge/intel/fsp_i89xx/romstage.c<br>1 file changed, 4 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/20564/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/southbridge/intel/fsp_i89xx/romstage.c b/src/southbridge/intel/fsp_i89xx/romstage.c<br>index c2b5221..a972bd7 100644<br>--- a/src/southbridge/intel/fsp_i89xx/romstage.c<br>+++ b/src/southbridge/intel/fsp_i89xx/romstage.c<br>@@ -99,9 +99,9 @@<br> <br>         post_code(0x40);<br> <br>-#if IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS)<br>-      save_timestamp_to_cmos(CMOS_MAIN_START_ADDR, rdtsc());<br>-#endif<br>+      timestamp_init(get_initial_timestamp());<br>+     timestamp_add_now(TS_START_ROMSTAGE);<br>+<br>      pch_enable_lpc();<br> <br>  /* Enable GPIOs */<br>@@ -151,9 +151,7 @@<br> <br>    post_code(0x48);<br> <br>-#if IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS)<br>-      save_timestamp_to_cmos(CMOS_PRE_INITRAM_ADDR, rdtsc());<br>-#endif<br>+     timestamp_add_now(TS_BEFORE_INITRAM);<br> <br>   /*<br>    * Call early init to initialize memory and chipset. This function returns<br></pre><p>To view, visit <a href="https://review.coreboot.org/20564">change 20564</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/20564"/><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: I9a3a6609bdc8d03c4b86951daa1cafddd9c1332e </div>
<div style="display:none"> Gerrit-Change-Number: 20564 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Martin Roth <martinroth@google.com> </div>