<p>Arthur Heymans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22100">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sb/intel/i82801jx: Store initial timestamp in bootblock<br><br>The function to fetch this timestamp is already present.<br><br>Change-Id: I760aea8a867339764be9ca627b2ccdff4fd18e30<br>Signed-off-by: Arthur Heymans <arthur@aheymans.xyz><br>---<br>M src/southbridge/intel/i82801jx/bootblock.c<br>1 file changed, 13 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/00/22100/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/southbridge/intel/i82801jx/bootblock.c b/src/southbridge/intel/i82801jx/bootblock.c<br>index cc685c4..b41f8a9 100644<br>--- a/src/southbridge/intel/i82801jx/bootblock.c<br>+++ b/src/southbridge/intel/i82801jx/bootblock.c<br>@@ -14,7 +14,19 @@<br>  */<br> <br> #include <arch/io.h><br>+#include <cpu/x86/tsc.h><br> #include "i82801jx.h"<br>+<br>+static void store_initial_timestamp(void)<br>+{<br>+     /* We have two 32bit scratchpad registers available:<br>+  * D0:F0  0xdc (SKPAD)<br>+        * D31:F2 0xd0 (SATA SP)<br>+      */<br>+  tsc_t tsc = rdtsc();<br>+ pci_write_config32(PCI_DEV(0, 0x00, 0), 0xdc, tsc.lo);<br>+       pci_write_config32(PCI_DEV(0, 0x1f, 2), 0xd0, tsc.hi);<br>+}<br> <br> static void enable_spi_prefetch(void)<br> {<br>@@ -31,6 +43,7 @@<br> <br> static void bootblock_southbridge_init(void)<br> {<br>+   store_initial_timestamp();<br>    enable_spi_prefetch();<br> <br>     /* Enable RCBA */<br></pre><p>To view, visit <a href="https://review.coreboot.org/22100">change 22100</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/22100"/><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: I760aea8a867339764be9ca627b2ccdff4fd18e30 </div>
<div style="display:none"> Gerrit-Change-Number: 22100 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz> </div>