diff options
author | Kangheui Won <khwon@chromium.org> | 2021-06-11 14:50:18 +1000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-06-13 09:55:02 +0000 |
commit | bdb08188cbe3fba85dbeadadc469aa604394c293 (patch) | |
tree | 4fed77590a1179cc28c6a8131a3873778df50e7d /src/soc | |
parent | 262bcc04d401d5c43f025deaf78c340a68089c91 (diff) |
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 <khwon@chromium.org>
Change-Id: I4d51802145263145d40908889de29147af54f50f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55405
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/cezanne/bootblock.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |