Debian Codegraph @

src/soc/amd/common/block/cpu/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_AMD_COMMON_BLOCK_CAR
4 bool
5 help
6 This option allows the SOC to use a standard AMD cache-as-ram (CAR)
7 implementation. CAR setup is built into bootblock and teardown is
8 in postcar. The teardown procedure does not preserve the stack so
9 it may not be appropriate for a romstage implementation without
10 additional consideration. If this option is not used, the SOC must
11 implement these functions separately.
12 This is only used for AMD CPU before family 17h. From family 17h on
13 the RAM is already initialized by the PSP before the x86 cores are
14 released from reset.
15
16 config SOC_AMD_COMMON_BLOCK_NONCAR
17 bool
18 select RESERVED_PHYSICAL_ADDRESS_BITS_SUPPORT
19 select RESET_VECTOR_IN_RAM
20 help
21 From family 17h on AMD CPUs/APUs don't use cache as RAM (CAR) any
22 more, since the RAM initialization is already done by the PSP when
23 the x86 cores are released from reset.
24
25 if SOC_AMD_COMMON_BLOCK_NONCAR
26
27 config BOOTBLOCK_IN_CBFS
28 bool
29 default n
30
31 config MEMLAYOUT_LD_FILE
32 string
33 default "src/soc/amd/common/block/cpu/noncar/memlayout.ld"
34
35 config CBFS_CACHE_SIZE
36 hex
37 help
38 The size of the cbfs_cache region.
39
40 config ACPI_CPU_STRING
41 string
42 default "C%03X"
43
44 config SOC_AMD_COMMON_ROMSTAGE_LEGACY_DMA_FIXUP
45 bool
46 help
47 Disable the legacy DMA decodes again after the call into the
48 reference code in romstage to fix up things.
49
50 endif # SOC_AMD_COMMON_BLOCK_NONCAR
51
52 config SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM15H_16H
53 bool
54 help
55 Select this option to include code to calculate the CPU frequency
56 from the P state MSR values on AMD CPU families 15h and 16h.
57
58 config SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
59 bool
60 help
61 Select this option to include code to calculate the CPU frequency
62 from the P state MSR values on AMD CPU families 17h and 19h.
63
64 config SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM1AH
65 bool
66 help
67 Select this option to include code to calculate the CPU frequency
68 from the P state MSR values on AMD CPU family 1Ah.
69
70 config SOC_AMD_COMMON_BLOCK_MCA_COMMON
71 bool
72 help
73 Add common machine check architecture support. Do not select this
74 in the SoC's Kconfig; select either SOC_AMD_COMMON_BLOCK_MCA or
75 SOC_AMD_COMMON_BLOCK_MCAX which will select this one.
76
77 config SOC_AMD_COMMON_BLOCK_MCA
78 bool
79 select SOC_AMD_COMMON_BLOCK_MCA_COMMON
80 help
81 Add IA32 machine check architecture (MCA) support for pre-Zen CPUs.
82
83 config SOC_AMD_COMMON_BLOCK_MCAX
84 bool
85 select SOC_AMD_COMMON_BLOCK_MCA_COMMON
86 help
87 Add extended machine check architecture (MCAX) support for AMD family
88 17h, 19h and possibly newer CPUs.
89
90 config SOC_AMD_COMMON_BLOCK_SMM
91 bool
92 select X86_SMM_SKIP_RELOCATION_HANDLER if HAVE_SMI_HANDLER
93 help
94 Add common SMM relocation, finalization and handler functionality to
95 the build.
96
97 config SOC_AMD_COMMON_LATE_SMM_LOCKING
98 bool
99 depends on SOC_AMD_COMMON_BLOCK_SMM
100 help
101 Select this option to perform SMM locking late in soc_finalize(), rather than earlier
102 in smm_relocation_handler(). This is required for pre-Zen SoCs like Stoneyridge which
103 call into an AGESA binary as part of S3 resume, and require SMM to still be unlocked
104 at that time.
105
106 config SOC_AMD_COMMON_BLOCK_SVI2
107 bool
108 help
109 Select this option is the SoC uses the serial VID 2 standard for
110 encoding the voltage it requests from the VRM.
111
112 config SOC_AMD_COMMON_BLOCK_SVI3
113 bool
114 help
115 Select this option is the SoC uses the serial VID 3 standard for
116 encoding the voltage it requests from the VRM.
117
118 config SOC_AMD_COMMON_BLOCK_TSC
119 bool
120 select TSC_SYNC_LFENCE
121 select UDELAY_TSC
122 select TSC_MONOTONIC_TIMER
123 help
124 Select this option to add the common functions for getting the TSC
125 frequency of AMD family 17h, 19h and 1Ah CPUs/APUs and to provide
126 TSC-based monotonic timer functionality to the build.
127
128 config SOC_AMD_COMMON_BLOCK_CPU_SYNC_PSP_ADDR_MSR
129 bool
130 help
131 Select this option to have coreboot sync the PSP_ADDR_MSR from
132 the BSP to all APs.
133
134 config SOC_AMD_COMMON_BLOCK_UCODE
135 bool
136 help
137 Builds in support for loading uCode.