blob: 2d57906c456051c640859910710d9489280a1069 [file] [log] [blame]
Arthur Heymans6d3682e2023-07-13 12:34:04 +02001config SOC_AMD_GENOA
2 bool
3
4if SOC_AMD_GENOA
5
6config SOC_SPECIFIC_OPTIONS
7 def_bool y
8 select ARCH_X86
9 select HAVE_EXP_X86_64_SUPPORT
Arthur Heymans6d3682e2023-07-13 12:34:04 +020010 select RESET_VECTOR_IN_RAM
11 select SOC_AMD_COMMON
12 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Arthur Heymans4da9d6b42023-07-13 14:19:09 +020013 select SOC_AMD_COMMON_BLOCK_AOAC
Arthur Heymans48167b12023-07-13 14:07:54 +020014 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Arthur Heymansc666a912023-07-13 14:34:10 +020015 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
16 select SOC_AMD_COMMON_BLOCK_LPC
Arthur Heymans6d3682e2023-07-13 12:34:04 +020017 select SOC_AMD_COMMON_BLOCK_NONCAR
18 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Varshit Pandyac0f19832023-10-04 19:26:21 +053019 select SOC_AMD_COMMON_BLOCK_SMI
Arthur Heymans48167b12023-07-13 14:07:54 +020020 select SOC_AMD_COMMON_BLOCK_TSC
Arthur Heymansc666a912023-07-13 14:34:10 +020021 select SOC_AMD_COMMON_BLOCK_USE_ESPI
Arthur Heymanse4eba132023-07-13 14:02:42 +020022 select X86_CUSTOM_BOOTMEDIA
Arthur Heymans6d3682e2023-07-13 12:34:04 +020023
24config USE_EXP_X86_64_SUPPORT
25 default y
26
vbpandya87d8b8c2023-09-22 20:49:37 +053027config CHIPSET_DEVICETREE
28 string
29 default "soc/amd/genoa/chipset.cb"
30
Arthur Heymans6d3682e2023-07-13 12:34:04 +020031config EARLY_RESERVED_DRAM_BASE
32 hex
33 default 0x7000000
34 help
35 This variable defines the base address of the DRAM which is reserved
36 for usage by coreboot in early stages (i.e. before ramstage is up).
37 This memory gets reserved in BIOS tables to ensure that the OS does
38 not use it, thus preventing corruption of OS memory in case of S3
39 resume.
40
41config EARLYRAM_BSP_STACK_SIZE
42 hex
43 default 0x1000
44
45config PSP_APOB_DRAM_ADDRESS
46 hex
47 default 0x7001000
48 help
49 Location in DRAM where the PSP will copy the AGESA PSP Output
50 Block.
51
52config PSP_APOB_DRAM_SIZE
53 hex
54 default 0x20000
55
56config PRERAM_CBMEM_CONSOLE_SIZE
57 hex
58 default 0x1600
59 help
60 Increase this value if preram cbmem console is getting truncated
61
62config C_ENV_BOOTBLOCK_SIZE
63 hex
64 default 0x10000
65 help
66 Sets the size of the bootblock stage that should be loaded in DRAM.
67 This variable controls the DRAM allocation size in linker script
68 for bootblock stage.
69
70config ROMSTAGE_ADDR
71 hex
72 default 0x7040000
73 help
74 Sets the address in DRAM where romstage should be loaded.
75
76config ROMSTAGE_SIZE
77 hex
78 default 0x80000
79 help
80 Sets the size of DRAM allocation for romstage in linker script.
81
Arthur Heymans901f0402023-07-13 14:14:55 +020082config ECAM_MMCONF_BASE_ADDRESS
83 hex
84 default 0xE0000000
85
86config ECAM_MMCONF_BUS_NUMBER
87 int
88 default 256
89
Arthur Heymans8f1c7072023-07-13 12:52:49 +020090menu "PSP Configuration Options"
91
92config AMDFW_CONFIG_FILE
93 string
94 default "src/soc/amd/genoa/fw.cfg"
95
96config PSP_DISABLE_POSTCODES
97 bool "Disable PSP post codes"
98 help
99 Disables the output of port80 post codes from PSP.
100
101config PSP_INIT_ESPI
102 bool "Initialize eSPI in PSP Stage 2 Boot Loader"
103 help
104 Select to initialize the eSPI controller in the PSP Stage 2 Boot
105 Loader.
106
107config PSP_UNLOCK_SECURE_DEBUG
108 bool
109 default y
110
111config HAVE_PSP_WHITELIST_FILE
112 bool "Include a debug whitelist file in PSP build"
113 default n
114 help
115 Support secured unlock prior to reset using a whitelisted
116 serial number. This feature requires a signed whitelist image
117 and bootloader from AMD.
118
119 If unsure, answer 'n'
120
121config PSP_WHITELIST_FILE
122 string "Debug whitelist file path"
123 depends on HAVE_PSP_WHITELIST_FILE
124
Felix Held4ab1db82023-09-28 19:54:55 +0200125config PERFORM_SPL_FUSING
126 bool "Send SPL fuse command to PSP"
127 default n
128 help
129 Send the Security Patch Level (SPL) fusing command to the PSP in
130 order to update the minimum SPL version to be written to the SoC's
131 fuse bits. This will prevent using any embedded firmware components
132 with lower SPL version.
133
134 If unsure, answer 'n'
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200135
136config SPL_TABLE_FILE
Felix Held4ab1db82023-09-28 19:54:55 +0200137 string "SPL table file override"
138 help
139 Provide a mainboard-specific Security Patch Level (SPL) table file
140 override. The SPL file is required to support PSP FW anti-rollback
141 and needs to be created by AMD. The default SPL file specified in the
142 SoC's fw.cfg is in the corresponding folder of the amd_blobs submodule
143 and applies to all boards that use the SoC without verstage on PSP.
144 In the verstage on PSP case, a different SPL file is specific as an
145 override via this Kconfig option.
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200146
147config PSP_SOFTFUSE_BITS
148 string "PSP Soft Fuse bits to enable"
149 default ""
150 help
151 Space separated list of Soft Fuse bits to enable.
152 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
153 Bit 7: Disable PSP postcodes on Renoir and newer chips only
154 (Set by PSP_DISABLE_PORT80)
155 Bit 15: PSP debug output destination:
156 0=SoC MMIO UART, 1=IO port 0x3F8
157
158 See #57299 (NDA) for additional bit definitions.
159endmenu
160
161
162endif # SOC_AMD_GENOA