Elyes HAOUAS | f7b2fe6 | 2020-05-07 12:38:15 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 2 | |
| 3 | config SOC_INTEL_DENVERTON_NS |
| 4 | bool |
| 5 | help |
| 6 | Intel Denverton-NS SoC support |
| 7 | |
| 8 | if SOC_INTEL_DENVERTON_NS |
| 9 | |
Julien Viard de Galbert | 1c33f74 | 2020-11-07 23:40:43 +0100 | [diff] [blame] | 10 | config CPU_INTEL_NUM_FIT_ENTRIES |
| 11 | int |
| 12 | default 1 |
| 13 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 14 | config CPU_SPECIFIC_OPTIONS |
| 15 | def_bool y |
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame] | 16 | select ARCH_X86 |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 17 | select BOOT_DEVICE_SUPPORTS_WRITES |
Nico Huber | 371a667 | 2018-11-13 22:06:40 +0100 | [diff] [blame] | 18 | select DEBUG_GPIO |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 19 | select SOC_INTEL_COMMON |
| 20 | select SOC_INTEL_COMMON_RESET |
| 21 | select PLATFORM_USES_FSP2_0 |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 22 | select IOAPIC |
Johanna Schander | 8a6e036 | 2019-12-08 15:54:09 +0100 | [diff] [blame] | 23 | select HAVE_INTEL_FSP_REPO |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 24 | select HAVE_SMI_HANDLER |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 25 | select CACHE_MRC_SETTINGS |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 26 | select PCR_COMMON_IOSF_1_0 |
Julien Viard de Galbert | 1c33f74 | 2020-11-07 23:40:43 +0100 | [diff] [blame] | 27 | select SUPPORT_CPU_UCODE_IN_CBFS |
Stefan Tauner | ef8b957 | 2018-09-06 00:34:28 +0200 | [diff] [blame] | 28 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 29 | select SOC_INTEL_COMMON_BLOCK |
Julien Viard de Galbert | 5a1f540 | 2018-02-08 14:03:28 +0100 | [diff] [blame] | 30 | select SOC_INTEL_COMMON_BLOCK_CPU |
Julien Viard de Galbert | cf2b72f | 2018-04-05 11:24:45 +0200 | [diff] [blame] | 31 | select SOC_INTEL_COMMON_BLOCK_ACPI |
Julien Viard de Galbert | 2912e8e | 2018-08-14 16:15:26 +0200 | [diff] [blame] | 32 | select SOC_INTEL_COMMON_BLOCK_PMC |
| 33 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 34 | select SOC_INTEL_COMMON_BLOCK_FAST_SPI |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 35 | select SOC_INTEL_COMMON_BLOCK_GPIO |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 36 | select SOC_INTEL_COMMON_BLOCK_PCR |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 37 | select TSC_MONOTONIC_TIMER |
| 38 | select TSC_SYNC_MFENCE |
| 39 | select UDELAY_TSC |
Subrata Banik | 7455881 | 2018-01-25 11:41:04 +0530 | [diff] [blame] | 40 | select UDK_2015_BINDING |
Michael Niewöhner | 6303243 | 2020-10-11 17:34:54 +0200 | [diff] [blame] | 41 | select CPU_INTEL_COMMON |
Vanessa Eusebio | cd97982 | 2018-06-06 13:12:53 -0700 | [diff] [blame] | 42 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Felix Singer | e0b74a1 | 2020-03-03 22:39:02 +0100 | [diff] [blame] | 43 | select SUPPORT_CPU_UCODE_IN_CBFS |
Arthur Heymans | 06eecfe | 2021-06-10 15:33:56 +0200 | [diff] [blame] | 44 | select FSP_T_XIP if FSP_CAR |
| 45 | select FSP_M_XIP |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 46 | |
Andrey Petrov | dafd514 | 2019-12-30 09:58:47 -0800 | [diff] [blame] | 47 | config MMCONF_BASE_ADDRESS |
Andrey Petrov | dafd514 | 2019-12-30 09:58:47 -0800 | [diff] [blame] | 48 | default 0xe0000000 |
| 49 | |
Kyösti Mälkki | 6fcee75 | 2021-02-14 15:06:50 +0200 | [diff] [blame] | 50 | config MMCONF_BUS_NUMBER |
| 51 | int |
| 52 | default 256 |
| 53 | |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 54 | config FSP_HEADER_PATH |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 55 | default "3rdparty/fsp/DenvertonNSFspBinPkg/Include/" |
| 56 | |
| 57 | config FSP_FD_PATH |
Felix Singer | fdccfc6 | 2019-01-15 07:29:57 +0100 | [diff] [blame] | 58 | default "3rdparty/fsp/DenvertonNSFspBinPkg/FspBin/DenvertonNSFsp.fd" |
| 59 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 60 | # CAR memory layout on DENVERTON_NS hardware: |
| 61 | ## CAR base address - 0xfef00000 |
| 62 | ## CAR size 1MB - 0x100 (0xfff00) |
| 63 | ## coreboot usage: |
| 64 | ## DCACHE base - 0xfef00000 |
| 65 | ## DCACHE size - 0xb0000 |
| 66 | ## FSP usage: |
| 67 | ## FSP base - 0xfefb0000 |
| 68 | ## FSP size - 0x50000 - 0x100 (0x4ff00) |
| 69 | config MAX_CPUS |
| 70 | int |
| 71 | default 16 |
| 72 | |
Julien Viard de Galbert | 3ac3a68 | 2018-03-29 11:36:21 +0200 | [diff] [blame] | 73 | config PCR_BASE_ADDRESS |
| 74 | hex |
| 75 | default 0xfd000000 |
| 76 | help |
| 77 | This option allows you to select MMIO Base Address of sideband bus. |
| 78 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 79 | config DCACHE_RAM_BASE |
| 80 | hex |
| 81 | default 0xfef00000 |
| 82 | |
| 83 | config DCACHE_RAM_SIZE |
| 84 | hex |
| 85 | default 0xb0000 if FSP_CAR |
| 86 | default 0x100000 if !FSP_CAR |
| 87 | |
| 88 | config DCACHE_BSP_STACK_SIZE |
| 89 | hex |
| 90 | default 0x10000 |
| 91 | |
Julien Viard de Galbert | 5a1f540 | 2018-02-08 14:03:28 +0100 | [diff] [blame] | 92 | config CPU_BCLK_MHZ |
| 93 | int |
| 94 | default 100 |
| 95 | |
Michael Niewöhner | ef353e0 | 2021-09-26 15:28:06 +0200 | [diff] [blame] | 96 | config CPU_XTAL_HZ |
| 97 | default 24000000 |
| 98 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 99 | config SMM_TSEG_SIZE |
| 100 | hex |
| 101 | default 0x200000 |
| 102 | |
| 103 | config SMM_RESERVED_SIZE |
| 104 | hex |
| 105 | default 0x000000 |
| 106 | |
| 107 | config IQAT_ENABLE |
| 108 | bool "Enable IQAT" |
| 109 | default y |
| 110 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 111 | config HSUART_DEV |
| 112 | hex |
| 113 | default 0x1a |
| 114 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 115 | choice |
| 116 | prompt "UART mode selection" |
| 117 | default NON_LEGACY_UART_MODE |
| 118 | |
| 119 | config NON_LEGACY_UART_MODE |
| 120 | bool "Non Legacy Mode" |
| 121 | help |
| 122 | Disable legacy UART mode |
| 123 | |
| 124 | config LEGACY_UART_MODE |
| 125 | bool "Legacy Mode" |
| 126 | help |
| 127 | Enable legacy UART mode |
Julien Viard de Galbert | 1c33f74 | 2020-11-07 23:40:43 +0100 | [diff] [blame] | 128 | select CONSOLE_SERIAL |
| 129 | select DRIVERS_UART |
| 130 | select DRIVERS_UART_8250IO |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 131 | endchoice |
| 132 | |
| 133 | config ENABLE_HSUART |
Nico Huber | 3eb720c | 2018-11-11 00:27:41 +0100 | [diff] [blame] | 134 | depends on NON_LEGACY_UART_MODE |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 135 | bool "Enable High-speed UART debug port selected by UART_FOR_CONSOLE." |
| 136 | default n |
| 137 | select CONSOLE_SERIAL |
| 138 | select DRIVERS_UART |
| 139 | select DRIVERS_UART_8250MEM |
| 140 | |
| 141 | config CONSOLE_UART_BASE_ADDRESS |
| 142 | depends on ENABLE_HSUART |
| 143 | hex "MMIO base address for UART" |
| 144 | default 0xd4000000 |
| 145 | |
Julien Viard de Galbert | 1c33f74 | 2020-11-07 23:40:43 +0100 | [diff] [blame] | 146 | choice |
| 147 | prompt "Cache-as-ram implementation" |
| 148 | default USE_DENVERTON_NS_CAR_NEM_ENHANCED |
| 149 | help |
| 150 | This option allows you to select how cache-as-ram (CAR) is set up. |
| 151 | |
| 152 | config USE_DENVERTON_NS_CAR_NEM_ENHANCED |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 153 | bool "Enhanced Non-evict mode" |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 154 | select SOC_INTEL_COMMON_BLOCK_CAR |
Shreesh Chhabbi | 87c7ec7 | 2020-12-03 14:07:15 -0800 | [diff] [blame] | 155 | select INTEL_CAR_NEM_ENHANCED |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 156 | help |
| 157 | A current limitation of NEM (Non-Evict mode) is that code and data sizes |
| 158 | are derived from the requirement to not write out any modified cache line. |
| 159 | With NEM, if there is no physical memory behind the cached area, |
| 160 | the modified data will be lost and NEM results will be inconsistent. |
| 161 | ENHANCED NEM guarantees that modified data is always |
| 162 | kept in cache while clean data is replaced. |
| 163 | |
Julien Viard de Galbert | 1c33f74 | 2020-11-07 23:40:43 +0100 | [diff] [blame] | 164 | config USE_DENVERTON_NS_FSP_CAR |
| 165 | bool "Use FSP CAR" |
| 166 | select FSP_CAR |
| 167 | help |
| 168 | Use FSP APIs to initialize and tear down the Cache-As-Ram. |
| 169 | |
| 170 | endchoice |
| 171 | |
Mariusz Szafranski | a404133 | 2017-08-02 17:28:17 +0200 | [diff] [blame] | 172 | endif ## SOC_INTEL_DENVERTON_NS |