Felix Held has uploaded this change for review.

View Change

soc/amd/cezanne: call bootblock_main_with_basetime in bootblock_c_entry

Change-Id: Iaac661fcb7581236ace4b5bf057b3e70289f1c8b
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
---
M src/soc/amd/cezanne/bootblock.c
1 file changed, 9 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48473/1
diff --git a/src/soc/amd/cezanne/bootblock.c b/src/soc/amd/cezanne/bootblock.c
index 3fd5677..7fe9f81 100644
--- a/src/soc/amd/cezanne/bootblock.c
+++ b/src/soc/amd/cezanne/bootblock.c
@@ -2,11 +2,20 @@

#include <amdblocks/amd_pci_mmconf.h>
#include <bootblock_common.h>
+#include <cpu/x86/tsc.h>
#include <stdint.h>

asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
{
enable_pci_mmconf();
+
+ /*
+ * base_timestamp is raw tsc value. We need to divide by tsc_freq_mhz
+ * to get micro-seconds granularity.
+ */
+ base_timestamp /= tsc_freq_mhz();
+
+ bootblock_main_with_basetime(base_timestamp);
}

void bootblock_soc_early_init(void)

To view, visit change 48473. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaac661fcb7581236ace4b5bf057b3e70289f1c8b
Gerrit-Change-Number: 48473
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot@felixheld.de>
Gerrit-MessageType: newchange