blob: a2f706f32bffb1cf59d9ebedff86bee8293e86ba [file] [log] [blame]
Felix Helddc2d3562020-12-02 14:38:53 +01001# SPDX-License-Identifier: GPL-2.0-only
2
3config SOC_AMD_CEZANNE
4 bool
5 help
6 AMD Cezanne support
7
8if SOC_AMD_CEZANNE
9
10config SOC_SPECIFIC_OPTIONS
11 def_bool y
12 select ARCH_BOOTBLOCK_X86_32
13 select ARCH_VERSTAGE_X86_32
14 select ARCH_ROMSTAGE_X86_32
15 select ARCH_RAMSTAGE_X86_32
Raul E Rangel54616622021-02-05 17:29:12 -070016 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Felix Heldc9634992021-01-26 21:35:39 +010017 select FSP_COMPRESS_FSP_M_LZMA
18 select FSP_COMPRESS_FSP_S_LZMA
Felix Held44f41532020-12-09 02:01:16 +010019 select HAVE_CF9_RESET
Felix Heldee2a3652021-02-09 23:43:17 +010020 select HAVE_SMI_HANDLER
Felix Heldcb977342021-01-19 20:36:38 +010021 select IDT_IN_EVERY_STAGE
Felix Held4be064a2020-12-08 17:21:04 +010022 select IOAPIC
Felix Held8d0a6092021-01-14 01:40:50 +010023 select PLATFORM_USES_FSP2_0
Felix Helddc2d3562020-12-02 14:38:53 +010024 select RESET_VECTOR_IN_RAM
Felix Held7cd81b92021-02-11 14:58:08 +010025 select RTC
Felix Helddc2d3562020-12-02 14:38:53 +010026 select SOC_AMD_COMMON
Felix Heldbb4bee852021-02-10 16:53:53 +010027 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held64de2c12020-12-05 20:53:59 +010028 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held62ef88f2020-12-08 23:18:19 +010029 select SOC_AMD_COMMON_BLOCK_AOAC
Felix Held07462ef2020-12-11 15:55:45 +010030 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Zheng Bao3da55692021-01-26 18:30:18 +080031 select SOC_AMD_COMMON_BLOCK_LPC
Felix Helddc2d3562020-12-02 14:38:53 +010032 select SOC_AMD_COMMON_BLOCK_NONCAR
33 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held338d6702021-01-29 23:13:56 +010034 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Felix Held4be064a2020-12-08 17:21:04 +010035 select SOC_AMD_COMMON_BLOCK_SMBUS
Zheng Bao02a5ddd2020-12-15 22:16:51 +080036 select SOC_AMD_COMMON_BLOCK_SMI
Felix Heldbc134812021-02-10 02:26:10 +010037 select SOC_AMD_COMMON_BLOCK_SMM
Raul E Rangel54616622021-02-05 17:29:12 -070038 select SOC_AMD_COMMON_BLOCK_SPI
Felix Held65783fb2020-12-04 17:38:46 +010039 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Held8a3d4d52021-01-13 03:06:21 +010040 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldcc975c52021-01-23 00:18:08 +010041 select SSE2
Felix Held2976d322021-01-27 17:50:27 +010042 select SUPPORT_CPU_UCODE_IN_CBFS
Felix Held8d0a6092021-01-14 01:40:50 +010043 select UDK_2017_BINDING
Felix Heldf09221c2021-01-22 23:50:54 +010044 select X86_AMD_FIXED_MTRRS
Felix Helddc2d3562020-12-02 14:38:53 +010045
Furquan Shaikh696f4ea2021-01-08 11:48:52 -080046config CHIPSET_DEVICETREE
47 string
48 default "soc/amd/cezanne/chipset.cb"
49
Felix Helddc2d3562020-12-02 14:38:53 +010050config EARLY_RESERVED_DRAM_BASE
51 hex
52 default 0x2000000
53 help
54 This variable defines the base address of the DRAM which is reserved
55 for usage by coreboot in early stages (i.e. before ramstage is up).
56 This memory gets reserved in BIOS tables to ensure that the OS does
57 not use it, thus preventing corruption of OS memory in case of S3
58 resume.
59
60config EARLYRAM_BSP_STACK_SIZE
61 hex
62 default 0x1000
63
64config PSP_APOB_DRAM_ADDRESS
65 hex
66 default 0x2001000
67 help
68 Location in DRAM where the PSP will copy the AGESA PSP Output
69 Block.
70
71config PRERAM_CBMEM_CONSOLE_SIZE
72 hex
73 default 0x1600
74 help
75 Increase this value if preram cbmem console is getting truncated
76
Felix Helddc2d3562020-12-02 14:38:53 +010077config C_ENV_BOOTBLOCK_SIZE
78 hex
79 default 0x10000
80 help
81 Sets the size of the bootblock stage that should be loaded in DRAM.
82 This variable controls the DRAM allocation size in linker script
83 for bootblock stage.
84
Felix Helddc2d3562020-12-02 14:38:53 +010085config ROMSTAGE_ADDR
86 hex
87 default 0x2040000
88 help
89 Sets the address in DRAM where romstage should be loaded.
90
91config ROMSTAGE_SIZE
92 hex
93 default 0x80000
94 help
95 Sets the size of DRAM allocation for romstage in linker script.
96
97config FSP_M_ADDR
98 hex
99 default 0x20C0000
100 help
101 Sets the address in DRAM where FSP-M should be loaded. cbfstool
102 performs relocation of FSP-M to this address.
103
104config FSP_M_SIZE
105 hex
106 default 0x80000
107 help
108 Sets the size of DRAM allocation for FSP-M in linker script.
109
Felix Held8d0a6092021-01-14 01:40:50 +0100110config FSP_TEMP_RAM_SIZE
111 hex
112 default 0x40000
113 help
114 The amount of coreboot-allocated heap and stack usage by the FSP.
115
Raul E Rangel72616b32021-02-05 16:48:42 -0700116config VERSTAGE_ADDR
117 hex
118 depends on VBOOT_SEPARATE_VERSTAGE
119 default 0x2140000
120 help
121 Sets the address in DRAM where verstage should be loaded if running
122 as a separate stage on x86.
123
124config VERSTAGE_SIZE
125 hex
126 depends on VBOOT_SEPARATE_VERSTAGE
127 default 0x80000
128 help
129 Sets the size of DRAM allocation for verstage in linker script if
130 running as a separate stage on x86.
131
Felix Helddc2d3562020-12-02 14:38:53 +0100132config RAMBASE
133 hex
134 default 0x10000000
135
Raul E Rangel72616b32021-02-05 16:48:42 -0700136config RO_REGION_ONLY
137 string
138 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
139 default "apu/amdfw"
140
Felix Helddc2d3562020-12-02 14:38:53 +0100141config CPU_ADDR_BITS
142 int
143 default 48
144
145config MMCONF_BASE_ADDRESS
Felix Helddc2d3562020-12-02 14:38:53 +0100146 default 0xF8000000
147
148config MMCONF_BUS_NUMBER
Felix Helddc2d3562020-12-02 14:38:53 +0100149 default 64
150
Felix Held88615622021-01-19 23:51:45 +0100151config MAX_CPUS
152 int
153 default 16
154
Felix Held8a3d4d52021-01-13 03:06:21 +0100155config CONSOLE_UART_BASE_ADDRESS
156 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
157 hex
158 default 0xfedc9000 if UART_FOR_CONSOLE = 0
159 default 0xfedca000 if UART_FOR_CONSOLE = 1
160
Felix Heldee2a3652021-02-09 23:43:17 +0100161config SMM_TSEG_SIZE
162 hex
Felix Helde22eef72021-02-10 22:22:07 +0100163 default 0x800000 if HAVE_SMI_HANDLER
Felix Heldee2a3652021-02-09 23:43:17 +0100164 default 0x0
165
166config SMM_RESERVED_SIZE
167 hex
168 default 0x180000
169
170config SMM_MODULE_STACK_SIZE
171 hex
172 default 0x800
173
Zheng Baof51738d2021-01-20 16:43:52 +0800174menu "PSP Configuration Options"
175
176config AMD_FWM_POSITION_INDEX
177 int "Firmware Directory Table location (0 to 5)"
178 range 0 5
179 default 0 if BOARD_ROMSIZE_KB_512
180 default 1 if BOARD_ROMSIZE_KB_1024
181 default 2 if BOARD_ROMSIZE_KB_2048
182 default 3 if BOARD_ROMSIZE_KB_4096
183 default 4 if BOARD_ROMSIZE_KB_8192
184 default 5 if BOARD_ROMSIZE_KB_16384
185 help
186 Typically this is calculated by the ROM size, but there may
187 be situations where you want to put the firmware directory
188 table in a different location.
189 0: 512 KB - 0xFFFA0000
190 1: 1 MB - 0xFFF20000
191 2: 2 MB - 0xFFE20000
192 3: 4 MB - 0xFFC20000
193 4: 8 MB - 0xFF820000
194 5: 16 MB - 0xFF020000
195
196comment "AMD Firmware Directory Table set to location for 512KB ROM"
197 depends on AMD_FWM_POSITION_INDEX = 0
198comment "AMD Firmware Directory Table set to location for 1MB ROM"
199 depends on AMD_FWM_POSITION_INDEX = 1
200comment "AMD Firmware Directory Table set to location for 2MB ROM"
201 depends on AMD_FWM_POSITION_INDEX = 2
202comment "AMD Firmware Directory Table set to location for 4MB ROM"
203 depends on AMD_FWM_POSITION_INDEX = 3
204comment "AMD Firmware Directory Table set to location for 8MB ROM"
205 depends on AMD_FWM_POSITION_INDEX = 4
206comment "AMD Firmware Directory Table set to location for 16MB ROM"
207 depends on AMD_FWM_POSITION_INDEX = 5
208
209config AMDFW_CONFIG_FILE
210 string
211 default "src/soc/amd/cezanne/fw.cfg"
212
213config USE_PSPSECUREOS
214 bool
215 default y
216 help
217 Include the PspSecureOs and PspTrustlet binaries in the PSP build.
218
219 If unsure, answer 'y'
220
221config PSP_LOAD_MP2_FW
222 bool
223 default n
224 help
225 Include the MP2 firmwares and configuration into the PSP build.
226
227 If unsure, answer 'n'
228
229config PSP_LOAD_S0I3_FW
230 bool
231 default n
232 help
233 Select this item to include the S0i3 file into the PSP build.
234
235config PSP_UNLOCK_SECURE_DEBUG
236 bool "Unlock secure debug"
237 default y
238 help
239 Select this item to enable secure debug options in PSP.
240
241endmenu
242
Felix Helddc2d3562020-12-02 14:38:53 +0100243endif # SOC_AMD_CEZANNE