| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_AMD_GENOA_POC |
| 4 |
bool |
| 5 |
|
| 6 |
if SOC_AMD_GENOA_POC |
| 7 |
|
| 8 |
config SOC_SPECIFIC_OPTIONS |
| 9 |
def_bool y |
| 10 |
select ACPI_SOC_NVS |
| 11 |
select ARCH_X86 |
| 12 |
select DEFAULT_X2APIC |
| 13 |
select HAVE_ACPI_TABLES |
| 14 |
select HAVE_X86_64_SUPPORT |
| 15 |
select HAVE_SMI_HANDLER |
| 16 |
select SOC_AMD_COMMON |
| 17 |
select SOC_AMD_COMMON_BLOCK_ACPI |
| 18 |
select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
| 19 |
select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE |
| 20 |
select SOC_AMD_COMMON_BLOCK_ACPI_IVRS |
| 21 |
select SOC_AMD_COMMON_BLOCK_ACPI_MADT |
| 22 |
select SOC_AMD_COMMON_BLOCK_AOAC |
| 23 |
select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
| 24 |
select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H |
| 25 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC |
| 26 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN |
| 27 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_MULTI_PCI_SEGMENT |
| 28 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO |
| 29 |
select SOC_AMD_COMMON_BLOCK_HAS_ESPI |
| 30 |
select SOC_AMD_COMMON_BLOCK_I2C |
| 31 |
select SOC_AMD_COMMON_BLOCK_I3C |
| 32 |
select SOC_AMD_COMMON_BLOCK_IOMMU |
| 33 |
select SOC_AMD_COMMON_BLOCK_LPC |
| 34 |
select SOC_AMD_COMMON_BLOCK_MCAX |
| 35 |
select SOC_AMD_COMMON_BLOCK_NONCAR |
| 36 |
select SOC_AMD_COMMON_BLOCK_PCI |
| 37 |
select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
| 38 |
select SOC_AMD_COMMON_BLOCK_PSP_GEN2 |
| 39 |
select SOC_AMD_COMMON_BLOCK_PSP_SPL |
| 40 |
select SOC_AMD_COMMON_BLOCK_SMI |
| 41 |
select SOC_AMD_COMMON_BLOCK_SMM |
| 42 |
select SOC_AMD_COMMON_BLOCK_SMU |
| 43 |
select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY |
| 44 |
select SOC_AMD_COMMON_BLOCK_SPI |
| 45 |
select SOC_AMD_COMMON_BLOCK_SVI3 |
| 46 |
select SOC_AMD_COMMON_BLOCK_TSC |
| 47 |
select SOC_AMD_COMMON_BLOCK_UART |
| 48 |
select SOC_AMD_COMMON_BLOCK_UCODE |
| 49 |
select SOC_AMD_COMMON_BLOCK_USE_ESPI |
| 50 |
select SOC_AMD_OPENSIL |
| 51 |
select SOC_AMD_OPENSIL_GENOA_POC |
| 52 |
select OPENSIL_DRIVER |
| 53 |
|
| 54 |
config USE_X86_64_SUPPORT |
| 55 |
default y |
| 56 |
|
| 57 |
config CHIPSET_DEVICETREE |
| 58 |
string |
| 59 |
default "soc/amd/genoa_poc/chipset.cb" |
| 60 |
|
| 61 |
config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 62 |
int |
| 63 |
default 150 |
| 64 |
|
| 65 |
config EARLY_RESERVED_DRAM_BASE |
| 66 |
hex |
| 67 |
default 0x7000000 |
| 68 |
help |
| 69 |
This variable defines the base address of the DRAM which is reserved |
| 70 |
for usage by coreboot in early stages (i.e. before ramstage is up). |
| 71 |
This memory gets reserved in BIOS tables to ensure that the OS does |
| 72 |
not use it, thus preventing corruption of OS memory in case of S3 |
| 73 |
resume. |
| 74 |
|
| 75 |
config EARLYRAM_BSP_STACK_SIZE |
| 76 |
hex |
| 77 |
default 0x1000 |
| 78 |
|
| 79 |
config MAX_CPUS |
| 80 |
int |
| 81 |
default 384 |
| 82 |
|
| 83 |
config PSP_APOB_DRAM_ADDRESS |
| 84 |
hex |
| 85 |
default 0x7001000 |
| 86 |
help |
| 87 |
Location in DRAM where the PSP will copy the AGESA PSP Output |
| 88 |
Block. |
| 89 |
|
| 90 |
config PSP_APOB_DRAM_SIZE |
| 91 |
hex |
| 92 |
default 0x20000 |
| 93 |
|
| 94 |
config PRERAM_CBMEM_CONSOLE_SIZE |
| 95 |
hex |
| 96 |
default 0x1600 |
| 97 |
help |
| 98 |
Increase this value if preram cbmem console is getting truncated |
| 99 |
|
| 100 |
config C_ENV_BOOTBLOCK_SIZE |
| 101 |
hex |
| 102 |
default 0x20000 |
| 103 |
help |
| 104 |
Sets the size of the bootblock stage that should be loaded in DRAM. |
| 105 |
This variable controls the DRAM allocation size in linker script |
| 106 |
for bootblock stage. |
| 107 |
|
| 108 |
config ROMSTAGE_ADDR |
| 109 |
hex |
| 110 |
default 0x7050000 |
| 111 |
help |
| 112 |
Sets the address in DRAM where romstage should be loaded. |
| 113 |
|
| 114 |
config ROMSTAGE_SIZE |
| 115 |
hex |
| 116 |
default 0x70000 |
| 117 |
help |
| 118 |
Sets the size of DRAM allocation for romstage in linker script. |
| 119 |
|
| 120 |
config ECAM_MMCONF_BASE_ADDRESS |
| 121 |
hex |
| 122 |
default 0xE0000000 |
| 123 |
|
| 124 |
config ECAM_MMCONF_BUS_NUMBER |
| 125 |
int |
| 126 |
default 256 |
| 127 |
|
| 128 |
menu "PSP Configuration Options" |
| 129 |
|
| 130 |
config AMDFW_CONFIG_FILE |
| 131 |
string |
| 132 |
default "src/soc/amd/genoa_poc/fw.cfg" |
| 133 |
|
| 134 |
config PSP_DISABLE_POSTCODES |
| 135 |
bool "Disable PSP post codes" |
| 136 |
help |
| 137 |
Disables the output of port80 post codes from PSP. |
| 138 |
|
| 139 |
config PSP_INIT_ESPI |
| 140 |
bool "Initialize eSPI in PSP Stage 2 Boot Loader" |
| 141 |
help |
| 142 |
Select to initialize the eSPI controller in the PSP Stage 2 Boot |
| 143 |
Loader. |
| 144 |
|
| 145 |
config PSP_UNLOCK_SECURE_DEBUG |
| 146 |
bool |
| 147 |
default y |
| 148 |
|
| 149 |
config HAVE_PSP_WHITELIST_FILE |
| 150 |
bool "Include a debug whitelist file in PSP build" |
| 151 |
default n |
| 152 |
help |
| 153 |
Support secured unlock prior to reset using a whitelisted |
| 154 |
serial number. This feature requires a signed whitelist image |
| 155 |
and bootloader from AMD. |
| 156 |
|
| 157 |
If unsure, answer 'n' |
| 158 |
|
| 159 |
config PSP_WHITELIST_FILE |
| 160 |
string "Debug whitelist file path" |
| 161 |
depends on HAVE_PSP_WHITELIST_FILE |
| 162 |
|
| 163 |
config PSP_SOFTFUSE_BITS |
| 164 |
string "PSP Soft Fuse bits to enable" |
| 165 |
default "" |
| 166 |
help |
| 167 |
Space separated list of Soft Fuse bits to enable. |
| 168 |
Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG) |
| 169 |
Bit 7: Disable PSP postcodes on Renoir and newer chips only |
| 170 |
(Set by PSP_DISABLE_PORT80) |
| 171 |
Bit 15: PSP debug output destination: |
| 172 |
0=SoC MMIO UART, 1=IO port 0x3F8 |
| 173 |
|
| 174 |
See #57299 (NDA) for additional bit definitions. |
| 175 |
endmenu |
| 176 |
|
| 177 |
config CONSOLE_UART_BASE_ADDRESS |
| 178 |
depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART |
| 179 |
hex |
| 180 |
default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 181 |
default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 182 |
default 0xfedce000 if UART_FOR_CONSOLE = 2 |
| 183 |
|
| 184 |
config SMM_TSEG_SIZE |
| 185 |
hex |
| 186 |
default 0x800000 |
| 187 |
|
| 188 |
config ACPI_SSDT_PSD_INDEPENDENT |
| 189 |
bool "Allow core p-state independent transitions" |
| 190 |
default y |
| 191 |
help |
| 192 |
AMD recommends the ACPI _PSD object to be configured to cause |
| 193 |
cores to transition between p-states independently. A vendor may |
| 194 |
choose to generate _PSD object to allow cores to transition together. |
| 195 |
|
| 196 |
config ACPI_BERT |
| 197 |
bool "Build ACPI BERT Table" |
| 198 |
default y |
| 199 |
depends on HAVE_ACPI_TABLES |
| 200 |
help |
| 201 |
Report Machine Check errors identified in POST to the OS in an |
| 202 |
ACPI Boot Error Record Table. |
| 203 |
|
| 204 |
config ACPI_BERT_SIZE |
| 205 |
hex |
| 206 |
default 0x4000 if ACPI_BERT |
| 207 |
default 0x0 |
| 208 |
help |
| 209 |
Specify the amount of DRAM reserved for gathering the data used to |
| 210 |
generate the ACPI table. |
| 211 |
|
| 212 |
endif # SOC_AMD_GENOA_POC |