Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 1 | config SOC_AMD_GENOA |
| 2 | bool |
| 3 | |
| 4 | if SOC_AMD_GENOA |
| 5 | |
| 6 | config SOC_SPECIFIC_OPTIONS |
| 7 | def_bool y |
| 8 | select ARCH_X86 |
| 9 | select HAVE_EXP_X86_64_SUPPORT |
Arthur Heymans | 2e2f166 | 2023-07-14 22:58:49 +0200 | [diff] [blame] | 10 | select HAVE_SMI_HANDLER |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 11 | select RESET_VECTOR_IN_RAM |
| 12 | select SOC_AMD_COMMON |
Arthur Heymans | 2e2f166 | 2023-07-14 22:58:49 +0200 | [diff] [blame] | 13 | select SOC_AMD_COMMON_BLOCK_ACPI |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 14 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
Arthur Heymans | 4da9d6b4 | 2023-07-13 14:19:09 +0200 | [diff] [blame] | 15 | select SOC_AMD_COMMON_BLOCK_AOAC |
Varshit Pandya | 95d78d9 | 2023-10-04 19:30:21 +0530 | [diff] [blame] | 16 | select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
Arthur Heymans | 48167b1 | 2023-07-13 14:07:54 +0200 | [diff] [blame] | 17 | select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H |
Felix Held | 926887c | 2023-10-13 21:19:53 +0200 | [diff] [blame] | 18 | select SOC_AMD_COMMON_BLOCK_DATA_FABRIC |
| 19 | select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN |
| 20 | select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_MULTI_PCI_SEGMENT |
| 21 | select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO |
Arthur Heymans | c666a91 | 2023-07-13 14:34:10 +0200 | [diff] [blame] | 22 | select SOC_AMD_COMMON_BLOCK_HAS_ESPI |
Felix Held | d26f5a1 | 2023-11-20 16:31:31 +0100 | [diff] [blame] | 23 | select SOC_AMD_COMMON_BLOCK_I2C |
Arthur Heymans | c5122f9 | 2023-07-14 23:27:31 +0200 | [diff] [blame] | 24 | select SOC_AMD_COMMON_BLOCK_IOMMU |
Arthur Heymans | c666a91 | 2023-07-13 14:34:10 +0200 | [diff] [blame] | 25 | select SOC_AMD_COMMON_BLOCK_LPC |
Arthur Heymans | 447e279 | 2023-07-14 23:05:46 +0200 | [diff] [blame] | 26 | select SOC_AMD_COMMON_BLOCK_MCAX |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 27 | select SOC_AMD_COMMON_BLOCK_NONCAR |
| 28 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
Felix Held | 0f209b5 | 2023-10-26 14:27:57 +0200 | [diff] [blame] | 29 | select SOC_AMD_COMMON_BLOCK_PSP_GEN2 |
Felix Held | 51d1f30 | 2023-10-04 21:10:36 +0200 | [diff] [blame] | 30 | select SOC_AMD_COMMON_BLOCK_PSP_SPL |
Varshit Pandya | c0f1983 | 2023-10-04 19:26:21 +0530 | [diff] [blame] | 31 | select SOC_AMD_COMMON_BLOCK_SMI |
Arthur Heymans | 2e2f166 | 2023-07-14 22:58:49 +0200 | [diff] [blame] | 32 | select SOC_AMD_COMMON_BLOCK_SMM |
Varshit Pandya | 0a2d2a9 | 2023-10-16 17:26:35 +0530 | [diff] [blame] | 33 | select SOC_AMD_COMMON_BLOCK_SMU |
| 34 | select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY |
Arthur Heymans | 48167b1 | 2023-07-13 14:07:54 +0200 | [diff] [blame] | 35 | select SOC_AMD_COMMON_BLOCK_TSC |
Varshit Pandya | 970d770 | 2023-10-06 18:14:02 +0530 | [diff] [blame] | 36 | select SOC_AMD_COMMON_BLOCK_UART |
Arthur Heymans | c666a91 | 2023-07-13 14:34:10 +0200 | [diff] [blame] | 37 | select SOC_AMD_COMMON_BLOCK_USE_ESPI |
Arthur Heymans | e4eba13 | 2023-07-13 14:02:42 +0200 | [diff] [blame] | 38 | select X86_CUSTOM_BOOTMEDIA |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 39 | |
| 40 | config USE_EXP_X86_64_SUPPORT |
| 41 | default y |
| 42 | |
vbpandya | 87d8b8c | 2023-09-22 20:49:37 +0530 | [diff] [blame] | 43 | config CHIPSET_DEVICETREE |
| 44 | string |
| 45 | default "soc/amd/genoa/chipset.cb" |
| 46 | |
Felix Held | d26f5a1 | 2023-11-20 16:31:31 +0100 | [diff] [blame] | 47 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 48 | int |
| 49 | default 150 |
| 50 | |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 51 | config EARLY_RESERVED_DRAM_BASE |
| 52 | hex |
| 53 | default 0x7000000 |
| 54 | help |
| 55 | This variable defines the base address of the DRAM which is reserved |
| 56 | for usage by coreboot in early stages (i.e. before ramstage is up). |
| 57 | This memory gets reserved in BIOS tables to ensure that the OS does |
| 58 | not use it, thus preventing corruption of OS memory in case of S3 |
| 59 | resume. |
| 60 | |
| 61 | config EARLYRAM_BSP_STACK_SIZE |
| 62 | hex |
| 63 | default 0x1000 |
| 64 | |
Varshit Pandya | a775958 | 2023-10-17 21:59:39 +0530 | [diff] [blame] | 65 | config MAX_CPUS |
| 66 | int |
| 67 | default 384 |
| 68 | |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 69 | config PSP_APOB_DRAM_ADDRESS |
| 70 | hex |
| 71 | default 0x7001000 |
| 72 | help |
| 73 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 74 | Block. |
| 75 | |
| 76 | config PSP_APOB_DRAM_SIZE |
| 77 | hex |
| 78 | default 0x20000 |
| 79 | |
| 80 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 81 | hex |
| 82 | default 0x1600 |
| 83 | help |
| 84 | Increase this value if preram cbmem console is getting truncated |
| 85 | |
| 86 | config C_ENV_BOOTBLOCK_SIZE |
| 87 | hex |
| 88 | default 0x10000 |
| 89 | help |
| 90 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 91 | This variable controls the DRAM allocation size in linker script |
| 92 | for bootblock stage. |
| 93 | |
| 94 | config ROMSTAGE_ADDR |
| 95 | hex |
| 96 | default 0x7040000 |
| 97 | help |
| 98 | Sets the address in DRAM where romstage should be loaded. |
| 99 | |
| 100 | config ROMSTAGE_SIZE |
| 101 | hex |
| 102 | default 0x80000 |
| 103 | help |
| 104 | Sets the size of DRAM allocation for romstage in linker script. |
| 105 | |
Arthur Heymans | 901f040 | 2023-07-13 14:14:55 +0200 | [diff] [blame] | 106 | config ECAM_MMCONF_BASE_ADDRESS |
| 107 | hex |
| 108 | default 0xE0000000 |
| 109 | |
| 110 | config ECAM_MMCONF_BUS_NUMBER |
| 111 | int |
| 112 | default 256 |
| 113 | |
Arthur Heymans | 8f1c707 | 2023-07-13 12:52:49 +0200 | [diff] [blame] | 114 | menu "PSP Configuration Options" |
| 115 | |
| 116 | config AMDFW_CONFIG_FILE |
| 117 | string |
| 118 | default "src/soc/amd/genoa/fw.cfg" |
| 119 | |
| 120 | config PSP_DISABLE_POSTCODES |
| 121 | bool "Disable PSP post codes" |
| 122 | help |
| 123 | Disables the output of port80 post codes from PSP. |
| 124 | |
| 125 | config PSP_INIT_ESPI |
| 126 | bool "Initialize eSPI in PSP Stage 2 Boot Loader" |
| 127 | help |
| 128 | Select to initialize the eSPI controller in the PSP Stage 2 Boot |
| 129 | Loader. |
| 130 | |
| 131 | config PSP_UNLOCK_SECURE_DEBUG |
| 132 | bool |
| 133 | default y |
| 134 | |
| 135 | config HAVE_PSP_WHITELIST_FILE |
| 136 | bool "Include a debug whitelist file in PSP build" |
| 137 | default n |
| 138 | help |
| 139 | Support secured unlock prior to reset using a whitelisted |
| 140 | serial number. This feature requires a signed whitelist image |
| 141 | and bootloader from AMD. |
| 142 | |
| 143 | If unsure, answer 'n' |
| 144 | |
| 145 | config PSP_WHITELIST_FILE |
| 146 | string "Debug whitelist file path" |
| 147 | depends on HAVE_PSP_WHITELIST_FILE |
| 148 | |
Arthur Heymans | 8f1c707 | 2023-07-13 12:52:49 +0200 | [diff] [blame] | 149 | config PSP_SOFTFUSE_BITS |
| 150 | string "PSP Soft Fuse bits to enable" |
| 151 | default "" |
| 152 | help |
| 153 | Space separated list of Soft Fuse bits to enable. |
| 154 | Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG) |
| 155 | Bit 7: Disable PSP postcodes on Renoir and newer chips only |
| 156 | (Set by PSP_DISABLE_PORT80) |
| 157 | Bit 15: PSP debug output destination: |
| 158 | 0=SoC MMIO UART, 1=IO port 0x3F8 |
| 159 | |
| 160 | See #57299 (NDA) for additional bit definitions. |
| 161 | endmenu |
| 162 | |
Arthur Heymans | 2e2f166 | 2023-07-14 22:58:49 +0200 | [diff] [blame] | 163 | config SMM_TSEG_SIZE |
| 164 | hex |
| 165 | default 0x800000 |
Arthur Heymans | 8f1c707 | 2023-07-13 12:52:49 +0200 | [diff] [blame] | 166 | |
Varshit Pandya | 2edcd93 | 2023-11-02 19:21:01 +0530 | [diff] [blame] | 167 | #TODO: Check if the value of HEAP_SIZE is optimal |
| 168 | config HEAP_SIZE |
| 169 | hex |
| 170 | default 0x200000 |
| 171 | |
Arthur Heymans | 8f1c707 | 2023-07-13 12:52:49 +0200 | [diff] [blame] | 172 | endif # SOC_AMD_GENOA |