From 4911c3e352527c19e0bd7a724a4d20b7091a59ad Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 8 Dec 2020 17:39:26 +0100 Subject: soc/amd/cezanne: call bootblock_main_with_basetime in bootblock_c_entry Change-Id: Iaac661fcb7581236ace4b5bf057b3e70289f1c8b Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/48473 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/cezanne/bootblock.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/soc') 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) -- cgit v1.2.3