blob: 0d790a3a5805e11cfae1609cd38a54dc9cd5bfb6 [file] [log] [blame]
Felix Held4a8cd722020-04-18 22:26:39 +02001# SPDX-License-Identifier: GPL-2.0-only
Marc Jones24484842017-05-04 21:17:45 -06002
Marshall Dawson68519222019-11-25 11:36:15 -07003config SOC_AMD_STONEYRIDGE
4 bool
Kyösti Mälkki3139c8d2020-06-28 16:33:33 +03005 select ACPI_SOC_NVS
Angel Pons8e035e32021-06-22 12:58:20 +02006 select ARCH_X86
Felix Heldc07c7c92020-12-04 18:50:53 +01007 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Aaron Durbin51e4c1a2018-01-24 17:42:51 -07008 select COLLECT_TIMESTAMPS_NO_TSC
Marc Jones9156cac2017-07-12 11:05:38 -06009 select GENERIC_GPIO_LIB
Aaron Durbin51e4c1a2018-01-24 17:42:51 -070010 select GENERIC_UDELAY
Angel Ponsb74975e2020-07-13 01:12:57 +020011 select HAVE_CF9_RESET
Felix Heldc07c7c92020-12-04 18:50:53 +010012 select HAVE_SMI_HANDLER
Marc Jones24484842017-05-04 21:17:45 -060013 select HAVE_USBDEBUG_OPTIONS
Martin Rothbcb610a2022-10-29 13:31:54 -060014 select NO_DDR5
15 select NO_DDR3
16 select NO_DDR2
17 select NO_LPDDR4
Marc Jones33eef132017-10-26 16:50:42 -060018 select PARALLEL_MP_AP_WORK
Marc Jones17e85ad2017-12-20 16:21:25 -070019 select RTC
Felix Heldc07c7c92020-12-04 18:50:53 +010020 select SOC_AMD_PI
21 select SOC_AMD_COMMON
22 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held0bc46842021-11-23 10:19:28 +010023 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Felix Heldc07c7c92020-12-04 18:50:53 +010024 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held31364242021-07-23 19:18:02 +020025 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM
Felix Heldc07c7c92020-12-04 18:50:53 +010026 select SOC_AMD_COMMON_BLOCK_AOAC
27 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
28 select SOC_AMD_COMMON_BLOCK_CAR
Felix Held96fd62f2023-03-24 16:55:50 +010029 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM15H_16H
Felix Heldc07c7c92020-12-04 18:50:53 +010030 select SOC_AMD_COMMON_BLOCK_HDA
Karthikeyan Ramasubramanian0dbea482021-03-08 23:23:50 -070031 select SOC_AMD_COMMON_BLOCK_I2C
Felix Heldc07c7c92020-12-04 18:50:53 +010032 select SOC_AMD_COMMON_BLOCK_IOMMU
33 select SOC_AMD_COMMON_BLOCK_LPC
Felix Held1e1d4902021-07-14 00:05:39 +020034 select SOC_AMD_COMMON_BLOCK_MCA
Felix Heldc07c7c92020-12-04 18:50:53 +010035 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldc0538d42021-04-13 19:56:10 +020036 select SOC_AMD_COMMON_BLOCK_PM
Felix Heldc07c7c92020-12-04 18:50:53 +010037 select SOC_AMD_COMMON_BLOCK_PSP_GEN1
Felix Heldc07c7c92020-12-04 18:50:53 +010038 select SOC_AMD_COMMON_BLOCK_SATA
39 select SOC_AMD_COMMON_BLOCK_SMBUS
40 select SOC_AMD_COMMON_BLOCK_SMI
Felix Heldbc134812021-02-10 02:26:10 +010041 select SOC_AMD_COMMON_BLOCK_SMM
Felix Heldc07c7c92020-12-04 18:50:53 +010042 select SOC_AMD_COMMON_BLOCK_SPI
Felix Helda3391e52023-03-24 00:20:02 +010043 select SOC_AMD_COMMON_BLOCK_SVI2
Felix Held91ef9252021-01-12 23:44:05 +010044 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldc07c7c92020-12-04 18:50:53 +010045 select SSE2
46 select TSC_SYNC_LFENCE
Martin Rothbcb610a2022-10-29 13:31:54 -060047 select USE_DDR4
Felix Heldc07c7c92020-12-04 18:50:53 +010048 select X86_AMD_FIXED_MTRRS
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010049 help
50 AMD support for SOCs in Family 15h Models 60h-6Fh and Models 70h-7Fh.
51
52if SOC_AMD_STONEYRIDGE
Marc Jones24484842017-05-04 21:17:45 -060053
Marshall Dawson12294d02019-11-25 07:21:18 -070054config AMD_APU_STONEYRIDGE
55 bool
56 help
57 AMD Stoney Ridge APU
58
Marshall Dawsone1988f52019-11-25 11:15:35 -070059config AMD_APU_PRAIRIEFALCON
60 bool
61 help
62 AMD Embedded Prairie Falcon APU
63
Marshall Dawson12294d02019-11-25 07:21:18 -070064config AMD_APU_MERLINFALCON
65 bool
66 help
Marshall Dawsone1988f52019-11-25 11:15:35 -070067 AMD Embedded Merlin Falcon APU
Marshall Dawson12294d02019-11-25 07:21:18 -070068
Marshall Dawson3ac0ab52019-11-24 19:03:56 -070069config AMD_APU_PKG_FP4
70 bool
71 help
72 AMD FP4 package
73
74config AMD_APU_PKG_FT4
75 bool
76 help
77 AMD FT4 package
78
79config AMD_SOC_PACKAGE
80 string
81 default "FP4" if AMD_APU_PKG_FP4
82 default "FT4" if AMD_APU_PKG_FT4
83
Felix Heldb68e2242022-10-12 18:44:06 +020084config CHIPSET_DEVICETREE
85 string
86 default "soc/amd/stoneyridge/chipset_cz.cb" if AMD_APU_MERLINFALCON
87 default "soc/amd/stoneyridge/chipset_st.cb" if AMD_APU_PRAIRIEFALCON
88 default "soc/amd/stoneyridge/chipset_st.cb" if AMD_APU_STONEYRIDGE
89
Marshall Dawsone7557de2017-06-09 16:35:14 -060090config VBOOT
Marshall Dawsone7557de2017-06-09 16:35:14 -060091 select VBOOT_STARTS_IN_BOOTBLOCK
Marc Jones4c887ea2018-04-25 16:43:18 -060092 select VBOOT_VBNV_CMOS
93 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Marshall Dawsone7557de2017-06-09 16:35:14 -060094
Marc Jones21cde8b2017-05-07 16:47:36 -060095# TODO: Sync these with definitions in PI vendorcode.
96# DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR.
97# DCACHE_RAM_SIZE must equal BSP_STACK_SIZE.
98
99config DCACHE_RAM_BASE
100 hex
101 default 0x30000
102
103config DCACHE_RAM_SIZE
104 hex
105 default 0x10000
106
Marshall Dawson9df969a2017-07-25 18:46:46 -0600107config DCACHE_BSP_STACK_SIZE
Marshall Dawson9df969a2017-07-25 18:46:46 -0600108 hex
109 default 0x4000
110 help
111 The amount of anticipated stack usage in CAR by bootblock and
112 other stages.
113
Marshall Dawson7c3f1e72017-08-24 09:59:10 -0600114config PRERAM_CBMEM_CONSOLE_SIZE
115 hex
Marshall Dawson1df6bc62017-12-19 20:41:29 -0700116 default 0x1600
Marshall Dawson7c3f1e72017-08-24 09:59:10 -0600117 help
118 Increase this value if preram cbmem console is getting truncated
119
Marc Jones1587dc82017-05-15 18:55:11 -0600120config BOTTOMIO_POSITION
121 hex "Bottom of 32-bit IO space"
122 default 0xD0000000
123 help
124 If PCI peripherals with big BARs are connected to the system
125 the bottom of the IO must be decreased to allocate such
126 devices.
127
128 Declare the beginning of the 128MB-aligned MMIO region. This
129 option is useful when PCI peripherals requesting large address
130 ranges are present.
131
Shelley Chen4e9bb332021-10-20 15:43:45 -0700132config ECAM_MMCONF_BASE_ADDRESS
Marc Jones1587dc82017-05-15 18:55:11 -0600133 default 0xF8000000
134
Shelley Chen4e9bb332021-10-20 15:43:45 -0700135config ECAM_MMCONF_BUS_NUMBER
Marc Jones1587dc82017-05-15 18:55:11 -0600136 default 64
137
138config VGA_BIOS_ID
139 string
Felix Held0b03c082023-03-24 22:49:48 +0100140 default "1002,9870" if AMD_APU_MERLINFALCON
141 default "1002,98e0"
Marc Jones1587dc82017-05-15 18:55:11 -0600142 help
143 The default VGA BIOS PCI vendor/device ID should be set to the
144 result of the map_oprom_vendev() function in northbridge.c.
145
146config VGA_BIOS_FILE
147 string
Marshall Dawson7987c1c2019-11-25 08:29:28 -0700148 default "3rdparty/amd_blobs/stoneyridge/CarrizoGenericVbios.bin" if AMD_APU_MERLINFALCON
Marshall Dawsone1988f52019-11-25 11:15:35 -0700149 default "3rdparty/amd_blobs/stoneyridge/StoneyGenericVbios.bin" if AMD_APU_PRAIRIEFALCON
150 default "3rdparty/amd_blobs/stoneyridge/StoneyGenericVbios.bin" if AMD_APU_STONEYRIDGE
Marc Jones1587dc82017-05-15 18:55:11 -0600151
Marshall Dawson668dea02017-11-29 09:57:15 -0700152config S3_VGA_ROM_RUN
153 bool
154 default n
155
Marc Jones1587dc82017-05-15 18:55:11 -0600156config HEAP_SIZE
157 hex
158 default 0xc0000
159
Marc Jones24484842017-05-04 21:17:45 -0600160config EHCI_BAR
161 hex
162 default 0xfef00000
163
164config STONEYRIDGE_XHCI_ENABLE
165 bool "Enable Stoney Ridge XHCI Controller"
166 default y
167 help
168 The XHCI controller must be enabled and the XHCI firmware
169 must be added in order to have USB 3.0 support configured
170 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +0100171 controller if the XHCI firmware is available but the
Marc Jones24484842017-05-04 21:17:45 -0600172 XHCI controller is not enabled by coreboot.
173
174config STONEYRIDGE_XHCI_FWM
175 bool "Add xhci firmware"
176 default y
177 help
178 Add Stoney Ridge XHCI Firmware to support the onboard USB 3.0
179
Marc Jones24484842017-05-04 21:17:45 -0600180config STONEYRIDGE_GEC_FWM
181 bool
182 default n
183 help
184 Add Stoney Ridge GEC Firmware to support the onboard gigabit Ethernet MAC.
185 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
186
187config STONEYRIDGE_XHCI_FWM_FILE
188 string "XHCI firmware path and filename"
Marshall Dawson7987c1c2019-11-25 08:29:28 -0700189 default "3rdparty/amd_blobs/stoneyridge/xhci.bin"
Marc Jones24484842017-05-04 21:17:45 -0600190 depends on STONEYRIDGE_XHCI_FWM
191
Marc Jones24484842017-05-04 21:17:45 -0600192config STONEYRIDGE_GEC_FWM_FILE
193 string "GEC firmware path and filename"
194 depends on STONEYRIDGE_GEC_FWM
195
Zheng Baoc5e28ab2020-10-28 11:38:09 +0800196config AMDFW_CONFIG_FILE
197 string
198 string "AMD PSP Firmware config file"
Zheng Baoc5e28ab2020-10-28 11:38:09 +0800199 default "src/soc/amd/stoneyridge/fw_cz.cfg" if AMD_APU_MERLINFALCON
200 default "src/soc/amd/stoneyridge/fw_st.cfg" if AMD_APU_PRAIRIEFALCON
201 default "src/soc/amd/stoneyridge/fw_st.cfg" if AMD_APU_STONEYRIDGE
Marc Jones24484842017-05-04 21:17:45 -0600202
203config STONEYRIDGE_SATA_MODE
204 int "SATA Mode"
205 default 0
206 range 0 6
207 help
208 Select the mode in which SATA should be driven.
209 The default is NATIVE.
210 0: NATIVE mode does not require a ROM.
211 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
212 For example, seabios does not require the AHCI ROM.
213 3: LEGACY IDE
214 4: IDE to AHCI
215 5: AHCI7804: ROM Required, and AMD driver required in the OS.
216 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
217
218comment "NATIVE"
219 depends on STONEYRIDGE_SATA_MODE = 0
220
221comment "AHCI"
222 depends on STONEYRIDGE_SATA_MODE = 2
223
224comment "LEGACY IDE"
225 depends on STONEYRIDGE_SATA_MODE = 3
226
227comment "IDE to AHCI"
228 depends on STONEYRIDGE_SATA_MODE = 4
229
230comment "AHCI7804"
231 depends on STONEYRIDGE_SATA_MODE = 5
232
233comment "IDE to AHCI7804"
234 depends on STONEYRIDGE_SATA_MODE = 6
235
Marc Jones24484842017-05-04 21:17:45 -0600236config STONEYRIDGE_LEGACY_FREE
237 bool "System is legacy free"
238 help
239 Select y if there is no keyboard controller in the system.
240 This sets variables in AGESA and ACPI.
241
Marc Jones24484842017-05-04 21:17:45 -0600242config SERIRQ_CONTINUOUS_MODE
243 bool
244 default n
245 help
246 Set this option to y for serial IRQ in continuous mode.
247 Otherwise it is in quiet mode.
248
Arthur Heymansb5e72b62018-01-02 23:41:24 +0100249config CONSOLE_UART_BASE_ADDRESS
250 depends on CONSOLE_SERIAL
251 hex
252 default 0xfedc6000
253
Marshall Dawsonc6ef9db2017-05-14 14:16:56 -0600254config SMM_TSEG_SIZE
255 hex
Felix Helde22eef72021-02-10 22:22:07 +0100256 default 0x800000 if HAVE_SMI_HANDLER
Marshall Dawsonc6ef9db2017-05-14 14:16:56 -0600257 default 0x0
258
Marshall Dawsonb6172112017-09-13 17:47:31 -0600259config SMM_RESERVED_SIZE
260 hex
Marshall Dawsonfceac7e2018-05-18 14:40:53 -0600261 default 0x150000
Marshall Dawsonb6172112017-09-13 17:47:31 -0600262
Raul E Rangel846b4942018-06-12 10:43:09 -0600263config SMM_MODULE_STACK_SIZE
264 hex
265 default 0x800
266
Marc Jonese013df92017-08-23 16:28:02 -0600267config ACPI_CPU_STRING
268 string
Matt DeVillierc08d4c52020-06-20 23:45:30 -0500269 default "\\_SB.P%03d"
Marc Jonese013df92017-08-23 16:28:02 -0600270
Marshall Dawson9a32c412018-09-04 13:29:12 -0600271config ACPI_BERT
272 bool "Build ACPI BERT Table"
273 default y
274 depends on HAVE_ACPI_TABLES
275 help
276 Report Machine Check errors identified in POST to the OS in an
277 ACPI Boot Error Record Table. This option reserves an 8MB region
278 for building the error structures.
279
Marshall Dawson25eb2bc2019-03-14 12:42:46 -0600280config USE_PSPSECUREOS
Martin Rothb617e322017-09-07 13:23:55 -0600281 bool "Include PSP SecureOS blobs in AMD firmware"
282 default y
283 help
284 Include the PspSecureOs, PspTrustlet and TrustletKey binaries
285 in the amdfw section.
286
287 If unsure, answer 'y'
288
Richard Spiegel1bc578a2019-06-18 18:19:47 -0700289config SOC_AMD_PSP_SELECTABLE_SMU_FW
290 bool
Marshall Dawson12294d02019-11-25 07:21:18 -0700291 default y if AMD_APU_STONEYRIDGE
Richard Spiegel1bc578a2019-06-18 18:19:47 -0700292 help
293 Some ST implementations allow storing SMU firmware into cbfs and
294 calling the PSP to load the blobs at the proper time.
295
296 Merlin Falcon does not support it. If you are using 00670F00 SOC,
297 ask your AMD representative if it supports it or not.
298
Marshall Dawson5f0520a2017-10-30 16:11:45 -0600299config SOC_AMD_SMU_FANLESS
300 bool
301 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
302 default n if SOC_AMD_SMU_NOTFANLESS
303 default y
304
305config SOC_AMD_SMU_FANNED
306 bool
307 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
308 default n
309 select SOC_AMD_SMU_NOTFANLESS
310
311config SOC_AMD_SMU_NOTFANLESS # helper symbol - do not use
312 bool
313 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
314
Martin Roth30f9b952017-10-03 15:54:45 -0600315config AMDFW_OUTSIDE_CBFS
316 bool "The AMD firmware is outside CBFS"
317 default n
318 help
319 The AMDFW (PSP) is typically locatable in cbfs. Select this
320 option to manually attach the generated amdfw.rom outside of
321 cbfs. The location is selected by the FWM position.
322
Martin Roth6d8ef242017-09-08 14:39:35 -0600323config AMD_FWM_POSITION_INDEX
324 int "Firmware Directory Table location (0 to 5)"
325 range 0 5
326 default 0 if BOARD_ROMSIZE_KB_512
327 default 1 if BOARD_ROMSIZE_KB_1024
328 default 2 if BOARD_ROMSIZE_KB_2048
329 default 3 if BOARD_ROMSIZE_KB_4096
330 default 4 if BOARD_ROMSIZE_KB_8192
331 default 5 if BOARD_ROMSIZE_KB_16384
332 help
333 Typically this is calculated by the ROM size, but there may
334 be situations where you want to put the firmware directory
335 table in a different location.
336 0: 512 KB - 0xFFFA0000
337 1: 1 MB - 0xFFF20000
338 2: 2 MB - 0xFFE20000
339 3: 4 MB - 0xFFC20000
340 4: 8 MB - 0xFF820000
341 5: 16 MB - 0xFF020000
342
343comment "AMD Firmware Directory Table set to location for 512KB ROM"
344 depends on AMD_FWM_POSITION_INDEX = 0
345comment "AMD Firmware Directory Table set to location for 1MB ROM"
346 depends on AMD_FWM_POSITION_INDEX = 1
347comment "AMD Firmware Directory Table set to location for 2MB ROM"
348 depends on AMD_FWM_POSITION_INDEX = 2
349comment "AMD Firmware Directory Table set to location for 4MB ROM"
350 depends on AMD_FWM_POSITION_INDEX = 3
351comment "AMD Firmware Directory Table set to location for 8MB ROM"
352 depends on AMD_FWM_POSITION_INDEX = 4
353comment "AMD Firmware Directory Table set to location for 16MB ROM"
354 depends on AMD_FWM_POSITION_INDEX = 5
355
Marc Jones17431ab2017-11-16 15:26:00 -0700356config DIMM_SPD_SIZE
Marc Jones17431ab2017-11-16 15:26:00 -0700357 default 512 # DDR4
358
Marc Jones578a79d2017-12-06 16:27:04 -0700359config RO_REGION_ONLY
360 string
Matt DeVillier1e54a182022-10-04 16:34:21 -0500361 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
Marc Jones578a79d2017-12-06 16:27:04 -0700362 default "apu/amdfw"
363
Chris Ching6fc39d42017-12-20 16:06:03 -0700364config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
365 int
366 default 133
367
Felix Held27b295b2021-03-25 01:20:41 +0100368config DISABLE_KEYBOARD_RESET_PIN
369 bool
370 help
371 Instruct the SoC to not use the state of GPIO_129 as keyboard reset
372 signal. When this pin is used as GPIO and the keyboard reset
373 functionality isn't disabled, configuring it as an output and driving
374 it as 0 will cause a reset.
375
Arthur Heymansdd7ec092022-05-23 16:06:06 +0200376config ACPI_BERT_SIZE
377 hex
378 default 0x100000 if ACPI_BERT
379 default 0x0
380 help
381 Specify the amount of DRAM reserved for gathering the data used to
382 generate the ACPI table.
383
Marshall Dawson68519222019-11-25 11:36:15 -0700384endif # SOC_AMD_STONEYRIDGE