Debian Codegraph @

src/soc/amd/common/block/cpu/noncar/bootblock.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <amdblocks/amd_pci_mmconf.h>
4 #include <amdblocks/cpu.h>
5 #include <bootblock_common.h>
6 #include <console/console.h>
7 #include <cpu/cpu.h>
8 #include <cpu/x86/tsc.h>
9 #include <psp_verstage/psp_transfer.h>
10 #include <soc/southbridge.h>
11 #include <stdint.h>
12
13 asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
14 {
15 enable_pci_mmconf();
16 early_cache_setup();
17 write_resume_eip();
18
19 if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK))
20 boot_with_psp_timestamp(base_timestamp);
21
22 /*
23 * if VBOOT_STARTS_BEFORE_BOOTBLOCK is not selected or
24 * previous step did nothing, proceed with normal bootblock main.
25 */
26 bootblock_main_with_basetime(base_timestamp);
27 }
28
29 void bootblock_soc_early_init(void)
30 {
31 fch_pre_init();
32 }
33
34 void bootblock_soc_init(void)
35 {
36 u32 val = cpuid_eax(1);
37 printk(BIOS_DEBUG, "Family_Model: %08x\n", val);
38
39 if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) {
40 verify_psp_transfer_buf();
41 show_psp_transfer_info();
42 }
43
44 fch_early_init();
45 }