Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 4 | ## |
| 5 | ## This program is free software; you can redistribute it and/or modify |
| 6 | ## it under the terms of the GNU General Public License as published by |
| 7 | ## the Free Software Foundation; version 2 of the License. |
| 8 | ## |
| 9 | ## This program is distributed in the hope that it will be useful, |
| 10 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | ## GNU General Public License for more details. |
| 13 | ## |
| 14 | |
| 15 | config SOC_INTEL_DENVERTON_NS |
| 16 | bool |
| 17 | help |
| 18 | Intel Denverton-NS SoC support |
| 19 | |
| 20 | if SOC_INTEL_DENVERTON_NS |
| 21 | |
| 22 | config CPU_SPECIFIC_OPTIONS |
| 23 | def_bool y |
| 24 | select ARCH_BOOTBLOCK_X86_32 |
| 25 | select ARCH_RAMSTAGE_X86_32 |
| 26 | select ARCH_ROMSTAGE_X86_32 |
| 27 | select ARCH_VERSTAGE_X86_32 |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 28 | select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH |
| 29 | select BOOT_DEVICE_SUPPORTS_WRITES |
Nico Huber | 371a667 | 2018-11-13 22:06:40 +0100 | [diff] [blame] | 30 | select DEBUG_GPIO |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 31 | select SOC_INTEL_COMMON |
| 32 | select SOC_INTEL_COMMON_RESET |
| 33 | select PLATFORM_USES_FSP2_0 |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 34 | select IOAPIC |
Johanna Schander | 8a6e036 | 2019-12-08 15:54:09 +0100 | [diff] [blame] | 35 | select HAVE_INTEL_FSP_REPO |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 36 | select HAVE_SMI_HANDLER |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 37 | select CACHE_MRC_SETTINGS |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 38 | select PARALLEL_MP |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 39 | select PCR_COMMON_IOSF_1_0 |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 40 | select SMP |
Stefan Tauner | ef8b957 | 2018-09-06 00:34:28 +0200 | [diff] [blame] | 41 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Julien Viard de Galbert | cf2b72f | 2018-04-05 11:24:45 +0200 | [diff] [blame] | 42 | select COMMON_FADT |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 43 | select SOC_INTEL_COMMON_BLOCK |
Julien Viard de Galbert | 5a1f540 | 2018-02-08 14:03:28 +0100 | [diff] [blame] | 44 | select SOC_INTEL_COMMON_BLOCK_CPU |
Julien Viard de Galbert | cf2b72f | 2018-04-05 11:24:45 +0200 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_BLOCK_ACPI |
Julien Viard de Galbert | 2912e8e | 2018-08-14 16:15:26 +0200 | [diff] [blame] | 46 | select SOC_INTEL_COMMON_BLOCK_PMC |
| 47 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_FAST_SPI |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_GPIO |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 50 | select SOC_INTEL_COMMON_BLOCK_PCR |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 51 | select TSC_MONOTONIC_TIMER |
| 52 | select TSC_SYNC_MFENCE |
| 53 | select UDELAY_TSC |
Subrata Banik | 7455881 | 2018-01-25 11:41:04 +0530 | [diff] [blame] | 54 | select UDK_2015_BINDING |
Vanessa Eusebio | cd97982 | 2018-06-06 13:12:53 -0700 | [diff] [blame] | 55 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Felix Singer | e0b74a1 | 2020-03-03 22:39:02 +0100 | [diff] [blame] | 56 | select SUPPORT_CPU_UCODE_IN_CBFS |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 57 | |
Andrey Petrov | dafd514 | 2019-12-30 09:58:47 -0800 | [diff] [blame] | 58 | config MMCONF_BASE_ADDRESS |
| 59 | hex |
| 60 | default 0xe0000000 |
| 61 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 62 | config FSP_T_ADDR |
Elyes HAOUAS | ef90609 | 2020-02-20 19:41:17 +0100 | [diff] [blame] | 63 | hex "Intel FSP-T (temp RAM init) binary location" |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 64 | depends on ADD_FSP_BINARIES && FSP_CAR |
| 65 | default 0xfff30000 |
| 66 | help |
| 67 | The memory location of the Intel FSP-T binary for this platform. |
| 68 | |
| 69 | config FSP_M_ADDR |
| 70 | hex "Intel FSP-M (memory init) binary location" |
| 71 | depends on ADD_FSP_BINARIES |
| 72 | default 0xfff32000 |
| 73 | help |
| 74 | The memory location of the Intel FSP-M binary for this platform. |
| 75 | |
| 76 | config FSP_S_ADDR |
| 77 | hex "Intel FSP-S (silicon init) binary location" |
| 78 | depends on ADD_FSP_BINARIES |
| 79 | default 0xfffc3000 |
| 80 | help |
| 81 | The memory location of the Intel FSP-S binary for this platform. |
| 82 | |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 83 | config FSP_HEADER_PATH |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 84 | default "3rdparty/fsp/DenvertonNSFspBinPkg/Include/" |
| 85 | |
| 86 | config FSP_FD_PATH |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 87 | default "3rdparty/fsp/DenvertonNSFspBinPkg/FspBin/DenvertonNSFsp.fd" |
| 88 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 89 | # CAR memory layout on DENVERTON_NS hardware: |
| 90 | ## CAR base address - 0xfef00000 |
| 91 | ## CAR size 1MB - 0x100 (0xfff00) |
| 92 | ## coreboot usage: |
| 93 | ## DCACHE base - 0xfef00000 |
| 94 | ## DCACHE size - 0xb0000 |
| 95 | ## FSP usage: |
| 96 | ## FSP base - 0xfefb0000 |
| 97 | ## FSP size - 0x50000 - 0x100 (0x4ff00) |
| 98 | config MAX_CPUS |
| 99 | int |
| 100 | default 16 |
| 101 | |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 102 | config PCR_BASE_ADDRESS |
| 103 | hex |
| 104 | default 0xfd000000 |
| 105 | help |
| 106 | This option allows you to select MMIO Base Address of sideband bus. |
| 107 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 108 | config DCACHE_RAM_BASE |
| 109 | hex |
| 110 | default 0xfef00000 |
| 111 | |
| 112 | config DCACHE_RAM_SIZE |
| 113 | hex |
| 114 | default 0xb0000 if FSP_CAR |
| 115 | default 0x100000 if !FSP_CAR |
| 116 | |
| 117 | config DCACHE_BSP_STACK_SIZE |
| 118 | hex |
| 119 | default 0x10000 |
| 120 | |
Julien Viard de Galbert | 5a1f540 | 2018-02-08 14:03:28 +0100 | [diff] [blame] | 121 | config CPU_BCLK_MHZ |
| 122 | int |
| 123 | default 100 |
| 124 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 125 | config SMM_TSEG_SIZE |
| 126 | hex |
| 127 | default 0x200000 |
| 128 | |
| 129 | config SMM_RESERVED_SIZE |
| 130 | hex |
| 131 | default 0x000000 |
| 132 | |
| 133 | config IQAT_ENABLE |
| 134 | bool "Enable IQAT" |
| 135 | default y |
| 136 | |
| 137 | config IQAT_MEMORY_REGION_SIZE |
| 138 | depends on IQAT_ENABLE |
| 139 | hex |
| 140 | default 0x100000 |
| 141 | help |
| 142 | Do not change this value |
| 143 | |
| 144 | config HSUART_DEV |
| 145 | hex |
| 146 | default 0x1a |
| 147 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 148 | choice |
| 149 | prompt "UART mode selection" |
| 150 | default NON_LEGACY_UART_MODE |
| 151 | |
| 152 | config NON_LEGACY_UART_MODE |
| 153 | bool "Non Legacy Mode" |
| 154 | help |
| 155 | Disable legacy UART mode |
| 156 | |
| 157 | config LEGACY_UART_MODE |
| 158 | bool "Legacy Mode" |
| 159 | help |
| 160 | Enable legacy UART mode |
| 161 | endchoice |
| 162 | |
| 163 | config ENABLE_HSUART |
Nico Huber | 3eb720c | 2018-11-11 00:27:41 +0100 | [diff] [blame] | 164 | depends on NON_LEGACY_UART_MODE |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 165 | bool "Enable High-speed UART debug port selected by UART_FOR_CONSOLE." |
| 166 | default n |
| 167 | select CONSOLE_SERIAL |
| 168 | select DRIVERS_UART |
| 169 | select DRIVERS_UART_8250MEM |
| 170 | |
| 171 | config CONSOLE_UART_BASE_ADDRESS |
| 172 | depends on ENABLE_HSUART |
| 173 | hex "MMIO base address for UART" |
| 174 | default 0xd4000000 |
| 175 | |
| 176 | config C_ENV_BOOTBLOCK_SIZE |
| 177 | hex |
| 178 | default 0x8000 |
| 179 | |
| 180 | config DENVERTON_NS_CAR_NEM_ENHANCED |
| 181 | bool "Enhanced Non-evict mode" |
| 182 | depends on !FSP_CAR |
| 183 | default y |
| 184 | select SOC_INTEL_COMMON_BLOCK_CAR |
| 185 | select INTEL_CAR_NEM_ENHANCED |
| 186 | help |
| 187 | A current limitation of NEM (Non-Evict mode) is that code and data sizes |
| 188 | are derived from the requirement to not write out any modified cache line. |
| 189 | With NEM, if there is no physical memory behind the cached area, |
| 190 | the modified data will be lost and NEM results will be inconsistent. |
| 191 | ENHANCED NEM guarantees that modified data is always |
| 192 | kept in cache while clean data is replaced. |
| 193 | |
| 194 | endif ## SOC_INTEL_DENVERTON_NS |