soc/amd: Do SMM relocation via MSR
[coreboot.git] / src / soc / amd / common / block / cpu / Kconfig
blobcdd5c3a69e00c0d26d8b5aa1f773a785616b197a
1 config SOC_AMD_COMMON_BLOCK_CAR
2         bool
3         help
4           This option allows the SOC to use a standard AMD cache-as-ram (CAR)
5           implementation.  CAR setup is built into bootblock and teardown is
6           in postcar.  The teardown procedure does not preserve the stack so
7           it may not be appropriate for a romstage implementation without
8           additional consideration.  If this option is not used, the SOC must
9           implement these functions separately.
10           This is only used for AMD CPU before family 17h. From family 17h on
11           the RAM is already initialized by the PSP before the x86 cores are
12           released from reset.
14 config SOC_AMD_COMMON_BLOCK_NONCAR
15         bool
16         help
17           From family 17h on AMD CPUs/APUs don't use cache as RAM (CAR) any
18           more, since the RAM initialization is already done by the PSP when
19           the x86 cores are released from reset.
21 if SOC_AMD_COMMON_BLOCK_NONCAR
23 config BOOTBLOCK_IN_CBFS
24         bool
25         default n
27 config MEMLAYOUT_LD_FILE
28         string
29         default "src/soc/amd/common/block/cpu/noncar/memlayout.ld"
31 config CBFS_CACHE_SIZE
32         hex
33         help
34           The size of the cbfs_cache region.
36 endif # SOC_AMD_COMMON_BLOCK_NONCAR
38 config SOC_AMD_COMMON_BLOCK_MCA_COMMON
39         bool
40         help
41           Add common machine check architecture support. Do not select this
42           in the SoC's Kconfig; select either SOC_AMD_COMMON_BLOCK_MCA or
43           SOC_AMD_COMMON_BLOCK_MCAX which will select this one.
45 config SOC_AMD_COMMON_BLOCK_MCA
46         bool
47         select SOC_AMD_COMMON_BLOCK_MCA_COMMON
48         help
49           Add IA32 machine check architecture (MCA) support for pre-Zen CPUs.
51 config SOC_AMD_COMMON_BLOCK_MCAX
52         bool
53         select SOC_AMD_COMMON_BLOCK_MCA_COMMON
54         help
55           Add extended machine check architecture (MCAX) support for AMD family
56           17h, 19h and possibly newer CPUs.
58 config SOC_AMD_COMMON_BLOCK_SMM
59         bool
60         select X86_SMM_SKIP_RELOCATION_HANDLER if HAVE_SMI_HANDLER
61         help
62           Add common SMM relocation, finalization and handler functionality to
63           the build.
65 config SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
66         bool
67         select COLLECT_TIMESTAMPS_NO_TSC # selected use SoC-specific timestamp function
68         select TSC_SYNC_LFENCE
69         select UDELAY_TSC
70         help
71           Select this option to add the common functions for getting the TSC
72           frequency of AMD family 17h and 19h CPUs/APUs and to provide TSC-
73           based monotonic timer functionality to the build.
75 config SOC_AMD_COMMON_BLOCK_UCODE
76         bool
77         help
78           Builds in support for loading uCode.