blob: 826f80bdb516e934a82ccd9795b20737a6b477fb [file] [log] [blame]
Marshall Dawson9df969a2017-07-25 18:46:46 -06001config SOC_AMD_COMMON_BLOCK_CAR
2 bool
3 default n
4 help
5 This option allows the SOC to use a standard AMD cache-as-ram (CAR)
Marshall Dawsond61e8322017-08-09 19:59:20 -06006 implementation. CAR setup is built into bootblock and teardown is
7 in postcar. The teardown procedure does not preserve the stack so
8 it may not be appropriate for a romstage implementation without
9 additional consideration. If this option is not used, the SOC must
10 implement these functions separately.
Felix Heldbefec1e2020-11-06 00:26:03 +010011 This is only used for AMD CPU before family 17h. From family 17h on
12 the RAM is already initialized by the PSP before the x86 cores are
13 released from reset.
Felix Held9065f4f2020-11-21 02:12:54 +010014
15config SOC_AMD_COMMON_BLOCK_NONCAR
16 bool
17 default n
18 help
19 From family 17h on AMD CPUs/APUs don't use cache as RAM (CAR) any
20 more, since the RAM initialization is already done by the PSP when
21 the x86 cores are released from reset.
22
23if SOC_AMD_COMMON_BLOCK_NONCAR
24
25config MEMLAYOUT_LD_FILE
26 string
27 default "src/soc/amd/common/block/cpu/noncar/memlayout.ld"
28
29endif # SOC_AMD_COMMON_BLOCK_NONCAR