From bdb08188cbe3fba85dbeadadc469aa604394c293 Mon Sep 17 00:00:00 2001 From: Kangheui Won Date: Fri, 11 Jun 2021 14:50:18 +1000 Subject: [PATCH] soc/amd/cezanne: call boot_with_psp_timestamp if VBOOT_STARTS_BEFORE_BOOTBLOCK is set, call boot_with_psp_timestamp to migrate PSP timestamps into x86 timestamp table. Signed-off-by: Kangheui Won Change-Id: I4d51802145263145d40908889de29147af54f50f Reviewed-on: https://review.coreboot.org/c/coreboot/+/55405 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/cezanne/bootblock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/amd/cezanne/bootblock.c b/src/soc/amd/cezanne/bootblock.c index 21635c9c3c..c3cb138473 100644 --- a/src/soc/amd/cezanne/bootblock.c +++ b/src/soc/amd/cezanne/bootblock.c @@ -99,6 +99,13 @@ asmlinkage void bootblock_c_entry(uint64_t base_timestamp) */ base_timestamp /= tsc_freq_mhz(); + if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) + boot_with_psp_timestamp(base_timestamp); + + /* + * if VBOOT_STARTS_BEFORE_BOOTBLOCK is not selected or + * previous step did nothing, proceed with normal bootblock main. + */ bootblock_main_with_basetime(base_timestamp); }