Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | config SOC_AMD_CEZANNE |
| 4 | bool |
| 5 | help |
| 6 | AMD Cezanne support |
| 7 | |
| 8 | if SOC_AMD_CEZANNE |
| 9 | |
| 10 | config 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 Rangel | 5461662 | 2021-02-05 17:29:12 -0700 | [diff] [blame] | 16 | select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH |
Felix Held | c963499 | 2021-01-26 21:35:39 +0100 | [diff] [blame] | 17 | select FSP_COMPRESS_FSP_M_LZMA |
| 18 | select FSP_COMPRESS_FSP_S_LZMA |
Felix Held | 44f4153 | 2020-12-09 02:01:16 +0100 | [diff] [blame] | 19 | select HAVE_CF9_RESET |
Felix Held | cb97734 | 2021-01-19 20:36:38 +0100 | [diff] [blame] | 20 | select IDT_IN_EVERY_STAGE |
Felix Held | 4be064a | 2020-12-08 17:21:04 +0100 | [diff] [blame] | 21 | select IOAPIC |
Felix Held | 8d0a609 | 2021-01-14 01:40:50 +0100 | [diff] [blame] | 22 | select PLATFORM_USES_FSP2_0 |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 23 | select RESET_VECTOR_IN_RAM |
| 24 | select SOC_AMD_COMMON |
Felix Held | 64de2c1 | 2020-12-05 20:53:59 +0100 | [diff] [blame] | 25 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
Felix Held | 62ef88f | 2020-12-08 23:18:19 +0100 | [diff] [blame] | 26 | select SOC_AMD_COMMON_BLOCK_AOAC |
Felix Held | 07462ef | 2020-12-11 15:55:45 +0100 | [diff] [blame] | 27 | select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
Zheng Bao | 3da5569 | 2021-01-26 18:30:18 +0800 | [diff] [blame] | 28 | select SOC_AMD_COMMON_BLOCK_LPC |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 29 | select SOC_AMD_COMMON_BLOCK_NONCAR |
| 30 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
Felix Held | 338d670 | 2021-01-29 23:13:56 +0100 | [diff] [blame] | 31 | select SOC_AMD_COMMON_BLOCK_PSP_GEN2 |
Felix Held | 4be064a | 2020-12-08 17:21:04 +0100 | [diff] [blame] | 32 | select SOC_AMD_COMMON_BLOCK_SMBUS |
Zheng Bao | 02a5ddd | 2020-12-15 22:16:51 +0800 | [diff] [blame] | 33 | select SOC_AMD_COMMON_BLOCK_SMI |
Raul E Rangel | 5461662 | 2021-02-05 17:29:12 -0700 | [diff] [blame] | 34 | select SOC_AMD_COMMON_BLOCK_SPI |
Felix Held | 65783fb | 2020-12-04 17:38:46 +0100 | [diff] [blame] | 35 | select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H |
Felix Held | 8a3d4d5 | 2021-01-13 03:06:21 +0100 | [diff] [blame] | 36 | select SOC_AMD_COMMON_BLOCK_UART |
Felix Held | cc975c5 | 2021-01-23 00:18:08 +0100 | [diff] [blame] | 37 | select SSE2 |
Felix Held | 2976d32 | 2021-01-27 17:50:27 +0100 | [diff] [blame] | 38 | select SUPPORT_CPU_UCODE_IN_CBFS |
Felix Held | 8d0a609 | 2021-01-14 01:40:50 +0100 | [diff] [blame] | 39 | select UDK_2017_BINDING |
Felix Held | f09221c | 2021-01-22 23:50:54 +0100 | [diff] [blame] | 40 | select X86_AMD_FIXED_MTRRS |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 41 | |
Furquan Shaikh | 696f4ea | 2021-01-08 11:48:52 -0800 | [diff] [blame] | 42 | config CHIPSET_DEVICETREE |
| 43 | string |
| 44 | default "soc/amd/cezanne/chipset.cb" |
| 45 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 46 | config EARLY_RESERVED_DRAM_BASE |
| 47 | hex |
| 48 | default 0x2000000 |
| 49 | help |
| 50 | This variable defines the base address of the DRAM which is reserved |
| 51 | for usage by coreboot in early stages (i.e. before ramstage is up). |
| 52 | This memory gets reserved in BIOS tables to ensure that the OS does |
| 53 | not use it, thus preventing corruption of OS memory in case of S3 |
| 54 | resume. |
| 55 | |
| 56 | config EARLYRAM_BSP_STACK_SIZE |
| 57 | hex |
| 58 | default 0x1000 |
| 59 | |
| 60 | config PSP_APOB_DRAM_ADDRESS |
| 61 | hex |
| 62 | default 0x2001000 |
| 63 | help |
| 64 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 65 | Block. |
| 66 | |
| 67 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 68 | hex |
| 69 | default 0x1600 |
| 70 | help |
| 71 | Increase this value if preram cbmem console is getting truncated |
| 72 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 73 | config C_ENV_BOOTBLOCK_SIZE |
| 74 | hex |
| 75 | default 0x10000 |
| 76 | help |
| 77 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 78 | This variable controls the DRAM allocation size in linker script |
| 79 | for bootblock stage. |
| 80 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 81 | config ROMSTAGE_ADDR |
| 82 | hex |
| 83 | default 0x2040000 |
| 84 | help |
| 85 | Sets the address in DRAM where romstage should be loaded. |
| 86 | |
| 87 | config ROMSTAGE_SIZE |
| 88 | hex |
| 89 | default 0x80000 |
| 90 | help |
| 91 | Sets the size of DRAM allocation for romstage in linker script. |
| 92 | |
| 93 | config FSP_M_ADDR |
| 94 | hex |
| 95 | default 0x20C0000 |
| 96 | help |
| 97 | Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 98 | performs relocation of FSP-M to this address. |
| 99 | |
| 100 | config FSP_M_SIZE |
| 101 | hex |
| 102 | default 0x80000 |
| 103 | help |
| 104 | Sets the size of DRAM allocation for FSP-M in linker script. |
| 105 | |
Felix Held | 8d0a609 | 2021-01-14 01:40:50 +0100 | [diff] [blame] | 106 | config FSP_TEMP_RAM_SIZE |
| 107 | hex |
| 108 | default 0x40000 |
| 109 | help |
| 110 | The amount of coreboot-allocated heap and stack usage by the FSP. |
| 111 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 112 | config RAMBASE |
| 113 | hex |
| 114 | default 0x10000000 |
| 115 | |
| 116 | config CPU_ADDR_BITS |
| 117 | int |
| 118 | default 48 |
| 119 | |
| 120 | config MMCONF_BASE_ADDRESS |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 121 | default 0xF8000000 |
| 122 | |
| 123 | config MMCONF_BUS_NUMBER |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 124 | default 64 |
| 125 | |
Felix Held | 8861562 | 2021-01-19 23:51:45 +0100 | [diff] [blame] | 126 | config MAX_CPUS |
| 127 | int |
| 128 | default 16 |
| 129 | |
Felix Held | 8a3d4d5 | 2021-01-13 03:06:21 +0100 | [diff] [blame] | 130 | config CONSOLE_UART_BASE_ADDRESS |
| 131 | depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART |
| 132 | hex |
| 133 | default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 134 | default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 135 | |
Zheng Bao | f51738d | 2021-01-20 16:43:52 +0800 | [diff] [blame] | 136 | menu "PSP Configuration Options" |
| 137 | |
| 138 | config AMD_FWM_POSITION_INDEX |
| 139 | int "Firmware Directory Table location (0 to 5)" |
| 140 | range 0 5 |
| 141 | default 0 if BOARD_ROMSIZE_KB_512 |
| 142 | default 1 if BOARD_ROMSIZE_KB_1024 |
| 143 | default 2 if BOARD_ROMSIZE_KB_2048 |
| 144 | default 3 if BOARD_ROMSIZE_KB_4096 |
| 145 | default 4 if BOARD_ROMSIZE_KB_8192 |
| 146 | default 5 if BOARD_ROMSIZE_KB_16384 |
| 147 | help |
| 148 | Typically this is calculated by the ROM size, but there may |
| 149 | be situations where you want to put the firmware directory |
| 150 | table in a different location. |
| 151 | 0: 512 KB - 0xFFFA0000 |
| 152 | 1: 1 MB - 0xFFF20000 |
| 153 | 2: 2 MB - 0xFFE20000 |
| 154 | 3: 4 MB - 0xFFC20000 |
| 155 | 4: 8 MB - 0xFF820000 |
| 156 | 5: 16 MB - 0xFF020000 |
| 157 | |
| 158 | comment "AMD Firmware Directory Table set to location for 512KB ROM" |
| 159 | depends on AMD_FWM_POSITION_INDEX = 0 |
| 160 | comment "AMD Firmware Directory Table set to location for 1MB ROM" |
| 161 | depends on AMD_FWM_POSITION_INDEX = 1 |
| 162 | comment "AMD Firmware Directory Table set to location for 2MB ROM" |
| 163 | depends on AMD_FWM_POSITION_INDEX = 2 |
| 164 | comment "AMD Firmware Directory Table set to location for 4MB ROM" |
| 165 | depends on AMD_FWM_POSITION_INDEX = 3 |
| 166 | comment "AMD Firmware Directory Table set to location for 8MB ROM" |
| 167 | depends on AMD_FWM_POSITION_INDEX = 4 |
| 168 | comment "AMD Firmware Directory Table set to location for 16MB ROM" |
| 169 | depends on AMD_FWM_POSITION_INDEX = 5 |
| 170 | |
| 171 | config AMDFW_CONFIG_FILE |
| 172 | string |
| 173 | default "src/soc/amd/cezanne/fw.cfg" |
| 174 | |
| 175 | config USE_PSPSECUREOS |
| 176 | bool |
| 177 | default y |
| 178 | help |
| 179 | Include the PspSecureOs and PspTrustlet binaries in the PSP build. |
| 180 | |
| 181 | If unsure, answer 'y' |
| 182 | |
| 183 | config PSP_LOAD_MP2_FW |
| 184 | bool |
| 185 | default n |
| 186 | help |
| 187 | Include the MP2 firmwares and configuration into the PSP build. |
| 188 | |
| 189 | If unsure, answer 'n' |
| 190 | |
| 191 | config PSP_LOAD_S0I3_FW |
| 192 | bool |
| 193 | default n |
| 194 | help |
| 195 | Select this item to include the S0i3 file into the PSP build. |
| 196 | |
| 197 | config PSP_UNLOCK_SECURE_DEBUG |
| 198 | bool "Unlock secure debug" |
| 199 | default y |
| 200 | help |
| 201 | Select this item to enable secure debug options in PSP. |
| 202 | |
| 203 | endmenu |
| 204 | |
Felix Held | dc2d356 | 2020-12-02 14:38:53 +0100 | [diff] [blame] | 205 | endif # SOC_AMD_CEZANNE |