1 # SPDX-License-Identifier: GPL-2.0-only
3 config SOC_AMD_STONEYRIDGE
7 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
8 select COLLECT_TIMESTAMPS_NO_TSC
9 select GENERIC_GPIO_LIB
12 select HAVE_SMI_HANDLER
13 select HAVE_USBDEBUG_OPTIONS
14 select PARALLEL_MP_AP_WORK
18 select SOC_AMD_COMMON_BLOCK_ACPI
19 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
20 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
21 select SOC_AMD_COMMON_BLOCK_ACPI_MADT
22 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
23 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM
24 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS
25 select SOC_AMD_COMMON_BLOCK_AOAC
26 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
27 select SOC_AMD_COMMON_BLOCK_CAR
28 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM15H_16H
29 select SOC_AMD_COMMON_BLOCK_GRAPHICS
30 select SOC_AMD_COMMON_BLOCK_HDA
31 select SOC_AMD_COMMON_BLOCK_I2C
32 select SOC_AMD_COMMON_BLOCK_IOMMU
33 select SOC_AMD_COMMON_BLOCK_LPC
34 select SOC_AMD_COMMON_BLOCK_MCA
35 select SOC_AMD_COMMON_BLOCK_PCI
36 select SOC_AMD_COMMON_BLOCK_PM
37 select SOC_AMD_COMMON_BLOCK_PSP_GEN1
38 select SOC_AMD_COMMON_BLOCK_SATA
39 select SOC_AMD_COMMON_BLOCK_SMBUS
40 select SOC_AMD_COMMON_BLOCK_SMI
41 select SOC_AMD_COMMON_BLOCK_SMM
42 select SOC_AMD_COMMON_BLOCK_SMN
43 select SOC_AMD_COMMON_BLOCK_SPI
44 select SOC_AMD_COMMON_BLOCK_SVI2
45 select SOC_AMD_COMMON_BLOCK_UART
46 select SOC_AMD_COMMON_LATE_SMM_LOCKING
48 select TSC_SYNC_LFENCE
50 select X86_AMD_FIXED_MTRRS
52 AMD support for SOCs in Family 15h Models 60h-6Fh and Models 70h-7Fh.
54 if SOC_AMD_STONEYRIDGE
56 config AMD_APU_STONEYRIDGE
61 config AMD_APU_PRAIRIEFALCON
64 AMD Embedded Prairie Falcon APU
66 config AMD_APU_MERLINFALCON
69 AMD Embedded Merlin Falcon APU
71 config AMD_APU_PKG_FP4
76 config AMD_APU_PKG_FT4
81 config AMD_SOC_PACKAGE
83 default "FP4" if AMD_APU_PKG_FP4
84 default "FT4" if AMD_APU_PKG_FT4
86 config CHIPSET_DEVICETREE
88 default "soc/amd/stoneyridge/chipset_cz.cb" if AMD_APU_MERLINFALCON
89 default "soc/amd/stoneyridge/chipset_st.cb" if AMD_APU_PRAIRIEFALCON
90 default "soc/amd/stoneyridge/chipset_st.cb" if AMD_APU_STONEYRIDGE
93 select VBOOT_STARTS_IN_BOOTBLOCK
94 select VBOOT_VBNV_CMOS
95 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
97 # TODO: Sync these with definitions in PI vendorcode.
98 # DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR.
99 # DCACHE_RAM_SIZE must equal BSP_STACK_SIZE.
101 config DCACHE_RAM_BASE
105 config DCACHE_RAM_SIZE
109 config PRERAM_CBFS_CACHE_SIZE
112 config DCACHE_BSP_STACK_SIZE
116 The amount of anticipated stack usage in CAR by bootblock and
119 config PRERAM_CBMEM_CONSOLE_SIZE
123 Increase this value if preram cbmem console is getting truncated
125 config BOTTOMIO_POSITION
126 hex "Bottom of 32-bit IO space"
129 If PCI peripherals with big BARs are connected to the system
130 the bottom of the IO must be decreased to allocate such
133 Declare the beginning of the 128MB-aligned MMIO region. This
134 option is useful when PCI peripherals requesting large address
137 config ECAM_MMCONF_BASE_ADDRESS
140 config ECAM_MMCONF_BUS_NUMBER
143 # This number must be equal or lower than what's reported in ACPI PCI _CRS
144 config DOMAIN_RESOURCE_32BIT_LIMIT
145 default ECAM_MMCONF_BASE_ADDRESS
149 default "1002,9870" if AMD_APU_MERLINFALCON
152 The default VGA BIOS PCI vendor/device ID should be set to the
153 result of the map_oprom_vendev() function in northbridge.c.
157 default "3rdparty/amd_blobs/stoneyridge/CarrizoGenericVbios.bin" if AMD_APU_MERLINFALCON
158 default "3rdparty/amd_blobs/stoneyridge/StoneyGenericVbios.bin" if AMD_APU_PRAIRIEFALCON
159 default "3rdparty/amd_blobs/stoneyridge/StoneyGenericVbios.bin" if AMD_APU_STONEYRIDGE
161 config S3_VGA_ROM_RUN
169 config STONEYRIDGE_XHCI_ENABLE
170 bool "Enable Stoney Ridge XHCI Controller"
173 The XHCI controller must be enabled and the XHCI firmware
174 must be added in order to have USB 3.0 support configured
175 by coreboot. The OS will be responsible for enabling the XHCI
176 controller if the XHCI firmware is available but the
177 XHCI controller is not enabled by coreboot.
179 config STONEYRIDGE_XHCI_FWM
180 bool "Add xhci firmware"
183 Add Stoney Ridge XHCI Firmware to support the onboard USB 3.0
185 config STONEYRIDGE_GEC_FWM
189 Add Stoney Ridge GEC Firmware to support the onboard gigabit Ethernet MAC.
190 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
192 config STONEYRIDGE_XHCI_FWM_FILE
193 string "XHCI firmware path and filename"
194 default "3rdparty/amd_blobs/stoneyridge/xhci.bin"
195 depends on STONEYRIDGE_XHCI_FWM
197 config STONEYRIDGE_GEC_FWM_FILE
198 string "GEC firmware path and filename"
199 depends on STONEYRIDGE_GEC_FWM
201 config AMDFW_CONFIG_FILE
203 string "AMD PSP Firmware config file"
204 default "src/soc/amd/stoneyridge/fw_cz.cfg" if AMD_APU_MERLINFALCON
205 default "src/soc/amd/stoneyridge/fw_st.cfg" if AMD_APU_PRAIRIEFALCON
206 default "src/soc/amd/stoneyridge/fw_st.cfg" if AMD_APU_STONEYRIDGE
208 config STONEYRIDGE_SATA_MODE
213 Select the mode in which SATA should be driven.
214 The default is NATIVE.
215 0: NATIVE mode does not require a ROM.
216 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
217 For example, seabios does not require the AHCI ROM.
220 5: AHCI7804: ROM Required, and AMD driver required in the OS.
221 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
224 depends on STONEYRIDGE_SATA_MODE = 0
227 depends on STONEYRIDGE_SATA_MODE = 2
230 depends on STONEYRIDGE_SATA_MODE = 3
232 comment "IDE to AHCI"
233 depends on STONEYRIDGE_SATA_MODE = 4
236 depends on STONEYRIDGE_SATA_MODE = 5
238 comment "IDE to AHCI7804"
239 depends on STONEYRIDGE_SATA_MODE = 6
241 config STONEYRIDGE_LEGACY_FREE
242 bool "System is legacy free"
244 Select y if there is no keyboard controller in the system.
245 This sets variables in AGESA and ACPI.
247 config SERIRQ_CONTINUOUS_MODE
251 Set this option to y for serial IRQ in continuous mode.
252 Otherwise it is in quiet mode.
254 config CONSOLE_UART_BASE_ADDRESS
255 depends on CONSOLE_SERIAL
261 default 0x800000 if HAVE_SMI_HANDLER
264 config SMM_RESERVED_SIZE
268 config SMM_MODULE_STACK_SIZE
272 config ACPI_CPU_STRING
276 config ACPI_SSDT_PSD_INDEPENDENT
280 bool "Build ACPI BERT Table"
282 depends on HAVE_ACPI_TABLES
284 Report Machine Check errors identified in POST to the OS in an
285 ACPI Boot Error Record Table. This option reserves an 8MB region
286 for building the error structures.
288 config USE_PSPSECUREOS
289 bool "Include PSP SecureOS blobs in AMD firmware"
292 Include the PspSecureOs, PspTrustlet and TrustletKey binaries
293 in the amdfw section.
295 If unsure, answer 'y'
297 config SOC_AMD_PSP_SELECTABLE_SMU_FW
299 default y if AMD_APU_STONEYRIDGE
301 Some ST implementations allow storing SMU firmware into cbfs and
302 calling the PSP to load the blobs at the proper time.
304 Merlin Falcon does not support it. If you are using 00670F00 SOC,
305 ask your AMD representative if it supports it or not.
307 config SOC_AMD_SMU_FANLESS
309 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
310 default n if SOC_AMD_SMU_NOTFANLESS
313 config SOC_AMD_SMU_FANNED
315 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
317 select SOC_AMD_SMU_NOTFANLESS
319 config SOC_AMD_SMU_NOTFANLESS # helper symbol - do not use
321 depends on SOC_AMD_PSP_SELECTABLE_SMU_FW
323 config AMDFW_OUTSIDE_CBFS
324 bool "The AMD firmware is outside CBFS"
327 The AMDFW (PSP) is typically locatable in cbfs. Select this
328 option to manually attach the generated amdfw.rom outside of
329 cbfs. The location is selected by the FWM position.
334 config RO_REGION_ONLY
336 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
339 config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
343 config DISABLE_KEYBOARD_RESET_PIN
346 Instruct the SoC to not use the state of GPIO_129 as keyboard reset
347 signal. When this pin is used as GPIO and the keyboard reset
348 functionality isn't disabled, configuring it as an output and driving
349 it as 0 will cause a reset.
351 config ACPI_BERT_SIZE
353 default 0x100000 if ACPI_BERT
356 Specify the amount of DRAM reserved for gathering the data used to
357 generate the ACPI table.
359 endif # SOC_AMD_STONEYRIDGE