diff options
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/cezanne/bootblock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/bootblock.c b/src/soc/amd/cezanne/bootblock.c index 3fd567720e..7fe9f81e28 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) |