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