Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 4 | ## Copyright (C) 2019 Advanced Micro Devices, Inc. |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
| 15 | |
Martin Roth | 1f33762 | 2019-04-22 16:08:31 -0600 | [diff] [blame] | 16 | config SOC_AMD_PICASSO |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 17 | bool |
| 18 | help |
Martin Roth | 1f33762 | 2019-04-22 16:08:31 -0600 | [diff] [blame] | 19 | AMD Picasso support |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 20 | |
Martin Roth | 1f33762 | 2019-04-22 16:08:31 -0600 | [diff] [blame] | 21 | if SOC_AMD_PICASSO |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 22 | |
| 23 | config CPU_SPECIFIC_OPTIONS |
| 24 | def_bool y |
| 25 | select ARCH_BOOTBLOCK_X86_32 |
| 26 | select ARCH_VERSTAGE_X86_32 |
| 27 | select ARCH_ROMSTAGE_X86_32 |
| 28 | select ARCH_RAMSTAGE_X86_32 |
| 29 | select X86_AMD_FIXED_MTRRS |
Marshall Dawson | 34c3056 | 2019-07-16 15:18:00 -0600 | [diff] [blame] | 30 | select X86_AMD_INIT_SIPI |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 31 | select ACPI_AMD_HARDWARE_SLEEP_VALUES |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 32 | select DRIVERS_I2C_DESIGNWARE |
| 33 | select GENERIC_GPIO_LIB |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 34 | select IOAPIC |
| 35 | select HAVE_USBDEBUG_OPTIONS |
Marshall Dawson | 80d0b01 | 2019-06-19 12:29:23 -0600 | [diff] [blame] | 36 | select TSC_MONOTONIC_TIMER |
Richard Spiegel | 65562cd65 | 2019-08-21 10:27:05 -0700 | [diff] [blame] | 37 | select SOC_AMD_COMMON_BLOCK_SPI |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 38 | select TSC_SYNC_LFENCE |
Marshall Dawson | 80d0b01 | 2019-06-19 12:29:23 -0600 | [diff] [blame] | 39 | select UDELAY_TSC |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 40 | select SOC_AMD_COMMON |
| 41 | select SOC_AMD_COMMON_BLOCK |
| 42 | select SOC_AMD_COMMON_BLOCK_IOMMU |
| 43 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
| 44 | select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
| 45 | select SOC_AMD_COMMON_BLOCK_ACPI |
| 46 | select SOC_AMD_COMMON_BLOCK_LPC |
| 47 | select SOC_AMD_COMMON_BLOCK_PCI |
| 48 | select SOC_AMD_COMMON_BLOCK_HDA |
| 49 | select SOC_AMD_COMMON_BLOCK_SATA |
Aaron Durbin | 3d2e18a | 2020-01-28 11:20:05 -0700 | [diff] [blame] | 50 | select SOC_AMD_COMMON_BLOCK_SMBUS |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 51 | select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH |
| 52 | select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 53 | select PARALLEL_MP |
| 54 | select PARALLEL_MP_AP_WORK |
| 55 | select HAVE_SMI_HANDLER |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 56 | select SSE2 |
| 57 | select RTC |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 58 | |
Kyösti Mälkki | 9c55ee3 | 2019-07-22 09:34:50 +0300 | [diff] [blame] | 59 | config HAVE_BOOTBLOCK |
| 60 | bool |
| 61 | default n |
| 62 | |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 63 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 64 | hex |
| 65 | default 0x1600 |
| 66 | help |
| 67 | Increase this value if preram cbmem console is getting truncated |
| 68 | |
| 69 | config CPU_ADDR_BITS |
| 70 | int |
| 71 | default 48 |
| 72 | |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 73 | config MMCONF_BASE_ADDRESS |
| 74 | hex |
| 75 | default 0xF8000000 |
| 76 | |
| 77 | config MMCONF_BUS_NUMBER |
| 78 | int |
| 79 | default 64 |
| 80 | |
| 81 | config VGA_BIOS_ID |
| 82 | string |
Marshall Dawson | 0d441da | 2019-07-09 18:19:05 -0500 | [diff] [blame] | 83 | default "1002,15d8" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 84 | help |
| 85 | The default VGA BIOS PCI vendor/device ID should be set to the |
| 86 | result of the map_oprom_vendev() function in northbridge.c. |
| 87 | |
| 88 | config VGA_BIOS_FILE |
| 89 | string |
Marshall Dawson | 0d441da | 2019-07-09 18:19:05 -0500 | [diff] [blame] | 90 | default "3rdparty/blobs/soc/amd/picasso/PicassoGenericVbios.bin" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 91 | |
| 92 | config S3_VGA_ROM_RUN |
| 93 | bool |
| 94 | default n |
| 95 | |
| 96 | config HEAP_SIZE |
| 97 | hex |
| 98 | default 0xc0000 |
| 99 | |
| 100 | config EHCI_BAR |
| 101 | hex |
| 102 | default 0xfef00000 |
| 103 | |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 104 | config SERIRQ_CONTINUOUS_MODE |
| 105 | bool |
| 106 | default n |
| 107 | help |
| 108 | Set this option to y for serial IRQ in continuous mode. |
| 109 | Otherwise it is in quiet mode. |
| 110 | |
Marshall Dawson | bc4c903 | 2019-06-11 12:18:20 -0600 | [diff] [blame] | 111 | config PICASSO_ACPI_IO_BASE |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 112 | hex |
| 113 | default 0x400 |
| 114 | help |
| 115 | Base address for the ACPI registers. |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 116 | |
Marshall Dawson | bc4c903 | 2019-06-11 12:18:20 -0600 | [diff] [blame] | 117 | config PICASSO_UART |
| 118 | bool "UART controller on Picasso" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 119 | default n |
| 120 | select DRIVERS_UART_8250MEM |
| 121 | select DRIVERS_UART_8250MEM_32 |
| 122 | select NO_UART_ON_SUPERIO |
| 123 | select UART_OVERRIDE_REFCLK |
| 124 | help |
Marshall Dawson | c0b8d0d | 2019-06-20 10:29:29 -0600 | [diff] [blame] | 125 | There are four memory-mapped UARTs controllers in Picasso at: |
| 126 | 0: 0xfedc9000 |
| 127 | 1: 0xfedca000 |
| 128 | 2: 0xfedc3000 |
| 129 | 3: 0xfedcf000 |
| 130 | |
| 131 | choice PICASSO_UART_CLOCK_SOURCE |
| 132 | prompt "UART Frequency" |
| 133 | depends on PICASSO_UART |
| 134 | default PICASSO_UART_48MZ |
| 135 | |
| 136 | config PICASSO_UART_48MZ |
| 137 | bool "48 MHz clock" |
| 138 | help |
| 139 | Select this option for the most compatibility. |
| 140 | |
| 141 | config PICASSO_UART_1_8MZ |
| 142 | bool "1.8432 MHz clock" |
| 143 | help |
| 144 | Select this option if an old payload or Linux ttyS0 arguments |
| 145 | require it. |
| 146 | |
| 147 | endchoice |
| 148 | |
| 149 | config PICASSO_UART_LEGACY |
| 150 | bool "Decode legacy I/O range" |
| 151 | depends on PICASSO_UART |
| 152 | help |
| 153 | Assign I/O 3F8, 2F8, etc. to a Picasso UART. Only a single UART may |
| 154 | decode legacy addresses and this option enables the one used for the |
| 155 | console. A UART accessed with I/O does not allow all the features |
| 156 | of MMIO. The MMIO decode is still present when this option is used. |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 157 | |
| 158 | config CONSOLE_UART_BASE_ADDRESS |
Marshall Dawson | c0b8d0d | 2019-06-20 10:29:29 -0600 | [diff] [blame] | 159 | depends on CONSOLE_SERIAL && PICASSO_UART |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 160 | hex |
Marshall Dawson | c0b8d0d | 2019-06-20 10:29:29 -0600 | [diff] [blame] | 161 | default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 162 | default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 163 | default 0xfedc3000 if UART_FOR_CONSOLE = 2 |
| 164 | default 0xfedcf000 if UART_FOR_CONSOLE = 3 |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 165 | |
| 166 | config SMM_TSEG_SIZE |
| 167 | hex |
| 168 | default 0x800000 if SMM_TSEG && HAVE_SMI_HANDLER |
| 169 | default 0x0 |
| 170 | |
| 171 | config SMM_RESERVED_SIZE |
| 172 | hex |
| 173 | default 0x150000 |
| 174 | |
| 175 | config SMM_MODULE_STACK_SIZE |
| 176 | hex |
| 177 | default 0x800 |
| 178 | |
| 179 | config ACPI_CPU_STRING |
| 180 | string |
| 181 | default "\\_PR.P%03d" |
| 182 | |
| 183 | config ACPI_BERT |
| 184 | bool "Build ACPI BERT Table" |
| 185 | default y |
| 186 | depends on HAVE_ACPI_TABLES |
| 187 | help |
| 188 | Report Machine Check errors identified in POST to the OS in an |
| 189 | ACPI Boot Error Record Table. This option reserves an 8MB region |
| 190 | for building the error structures. |
| 191 | |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 192 | config RO_REGION_ONLY |
| 193 | string |
| 194 | depends on CHROMEOS |
| 195 | default "apu/amdfw" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 196 | |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 197 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 198 | int |
Martin Roth | 4017de0 | 2019-12-16 23:21:05 -0700 | [diff] [blame^] | 199 | default 150 |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 200 | |
Marshall Dawson | 39a4ac1 | 2019-06-20 16:28:33 -0600 | [diff] [blame] | 201 | config PICASSO_LPC_IOMUX |
| 202 | bool |
| 203 | help |
| 204 | Picasso's LPC bus signals are MUXed with some of the EMMC signals. |
| 205 | Select this option if LPC signals are required. |
| 206 | |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 207 | config MAINBOARD_POWER_RESTORE |
| 208 | def_bool n |
| 209 | help |
| 210 | This option determines what state to go to once power is restored |
| 211 | after having been lost in S0. Select this option to automatically |
| 212 | return to S0. Otherwise the system will remain in S5 once power |
| 213 | is restored. |
| 214 | |
| 215 | menu "PSP Configuration Options" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 216 | |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 217 | config AMDFW_OUTSIDE_CBFS |
| 218 | bool "The AMD firmware is outside CBFS" |
| 219 | default n |
| 220 | help |
| 221 | The AMDFW (PSP) is typically locatable in cbfs. Select this |
| 222 | option to manually attach the generated amdfw.rom outside of |
| 223 | cbfs. The location is selected by the FWM position. |
| 224 | |
| 225 | config AMD_FWM_POSITION_INDEX |
| 226 | int "Firmware Directory Table location (0 to 5)" |
| 227 | range 0 5 |
| 228 | default 0 if BOARD_ROMSIZE_KB_512 |
| 229 | default 1 if BOARD_ROMSIZE_KB_1024 |
| 230 | default 2 if BOARD_ROMSIZE_KB_2048 |
| 231 | default 3 if BOARD_ROMSIZE_KB_4096 |
| 232 | default 4 if BOARD_ROMSIZE_KB_8192 |
| 233 | default 5 if BOARD_ROMSIZE_KB_16384 |
| 234 | help |
| 235 | Typically this is calculated by the ROM size, but there may |
| 236 | be situations where you want to put the firmware directory |
| 237 | table in a different location. |
| 238 | 0: 512 KB - 0xFFFA0000 |
| 239 | 1: 1 MB - 0xFFF20000 |
| 240 | 2: 2 MB - 0xFFE20000 |
| 241 | 3: 4 MB - 0xFFC20000 |
| 242 | 4: 8 MB - 0xFF820000 |
| 243 | 5: 16 MB - 0xFF020000 |
| 244 | |
| 245 | comment "AMD Firmware Directory Table set to location for 512KB ROM" |
| 246 | depends on AMD_FWM_POSITION_INDEX = 0 |
| 247 | comment "AMD Firmware Directory Table set to location for 1MB ROM" |
| 248 | depends on AMD_FWM_POSITION_INDEX = 1 |
| 249 | comment "AMD Firmware Directory Table set to location for 2MB ROM" |
| 250 | depends on AMD_FWM_POSITION_INDEX = 2 |
| 251 | comment "AMD Firmware Directory Table set to location for 4MB ROM" |
| 252 | depends on AMD_FWM_POSITION_INDEX = 3 |
| 253 | comment "AMD Firmware Directory Table set to location for 8MB ROM" |
| 254 | depends on AMD_FWM_POSITION_INDEX = 4 |
| 255 | comment "AMD Firmware Directory Table set to location for 16MB ROM" |
| 256 | depends on AMD_FWM_POSITION_INDEX = 5 |
| 257 | |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 258 | config AMD_PUBKEY_FILE |
| 259 | string "AMD public Key" |
| 260 | default "3rdparty/blobs/soc/amd/picasso/PSP/AmdPubKeyRV.bin" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 261 | |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 262 | config PSP_APCB_FILE |
| 263 | string "APCB file" |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 264 | help |
Marshall Dawson | 4357a82 | 2019-09-25 11:07:56 -0600 | [diff] [blame] | 265 | The name of the AGESA Parameter Customization Block. This image is |
| 266 | instance ID 0 in the PSP's BIOS Directory Table. |
| 267 | |
| 268 | config PSP_APCB1_FILE |
| 269 | string |
| 270 | help |
| 271 | If specified, this image is instance ID 1 in the PSP's BIOS |
| 272 | Directory Table. |
| 273 | |
| 274 | config PSP_APCB2_FILE |
| 275 | string |
| 276 | help |
| 277 | If specified, this image is instance ID 2 in the PSP's BIOS |
| 278 | Directory Table. |
| 279 | |
| 280 | config PSP_APCB3_FILE |
| 281 | string |
| 282 | help |
| 283 | If specified, this image is instance ID 3 in the PSP's BIOS |
| 284 | Directory Table. |
| 285 | |
| 286 | config PSP_APCB4_FILE |
| 287 | string |
| 288 | help |
| 289 | If specified, this image is instance ID 4 in the PSP's BIOS |
| 290 | Directory Table. |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 291 | |
| 292 | config PSP_APOB_DESTINATION |
| 293 | hex |
| 294 | default 0x9f00000 |
| 295 | help |
| 296 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 297 | Block. |
| 298 | |
| 299 | config PSP_APOB_NV_ADDRESS |
| 300 | hex "Base address of APOB NV" |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 301 | help |
| 302 | Location in flash where the PSP can find the S3 restore information. |
| 303 | Place this on a boundary that the flash device can erase. |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 304 | |
| 305 | config PSP_APOB_NV_SIZE |
| 306 | hex "Size of APOB NV to be reserved" |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 307 | help |
| 308 | Size of the S3 restore information. Make this a multiple of the |
| 309 | size the flash device can erase. |
Marshall Dawson | 6261141 | 2019-06-19 11:46:06 -0600 | [diff] [blame] | 310 | |
| 311 | config USE_PSPSCUREOS |
| 312 | bool "Include PSP SecureOS blobs in PSP build" |
| 313 | default y |
| 314 | help |
| 315 | Include the PspSecureOs and PspTrustlet binaries in the PSP build. |
| 316 | |
| 317 | If unsure, answer 'y' |
| 318 | |
| 319 | config PSP_LOAD_MP2_FW |
| 320 | bool "Include MP2 blobs in PSP build" |
| 321 | default y |
| 322 | help |
| 323 | Include the MP2 firmwares and configuration into the PSP build. |
| 324 | |
| 325 | If unsure, answer 'y' |
| 326 | |
| 327 | config PSP_LOAD_S0I3_FW |
| 328 | bool "Include S0I3 blob in PSP build" |
| 329 | help |
| 330 | Select this item to include the S0i3 file into the PSP build. |
| 331 | |
| 332 | config HAVE_PSP_WHITELIST_FILE |
| 333 | bool "Include a debug whitelist file in PSP build" |
| 334 | default n |
| 335 | help |
| 336 | Support secured unlock prior to reset using a whitelisted |
| 337 | number? This feature requires a signed whitelist image and |
| 338 | bootloader from AMD. |
| 339 | |
| 340 | If unsure, answer 'n' |
| 341 | |
| 342 | config PSP_WHITELIST_FILE |
| 343 | string "Debug whitelist file name" |
| 344 | depends on HAVE_PSP_WHITELIST_FILE |
| 345 | default "3rdparty/blobs/soc/amd/picasso/PSP/wtl-rvn.sbin" |
| 346 | |
| 347 | endmenu |
Martin Roth | 5c354b9 | 2019-04-22 14:55:16 -0600 | [diff] [blame] | 348 | |
Martin Roth | 1f33762 | 2019-04-22 16:08:31 -0600 | [diff] [blame] | 349 | endif # SOC_AMD_PICASSO |