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