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 #include +#include #include 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)