drivers/fsp/fsp2_0: Rework FSP Notify Phase API configs
[coreboot.git] / src / soc / intel / denverton_ns / Kconfig
blob4c0c998792086299f9e37d83aa9fcda229926e0b
1 # SPDX-License-Identifier: GPL-2.0-only
3 config SOC_INTEL_DENVERTON_NS
4         bool
5         help
6           Intel Denverton-NS SoC support
8 if SOC_INTEL_DENVERTON_NS
10 config CPU_INTEL_NUM_FIT_ENTRIES
11         int
12         default 1
14 config CPU_SPECIFIC_OPTIONS
15         def_bool y
16         select ARCH_X86
17         select BOOT_DEVICE_SUPPORTS_WRITES
18         select CACHE_MRC_SETTINGS
19         select CPU_INTEL_COMMON
20         select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
21         select CPU_SUPPORTS_PM_TIMER_EMULATION
22         select DEBUG_GPIO
23         select FSP_M_XIP
24         select FSP_T_XIP if FSP_CAR
25         select HAVE_INTEL_FSP_REPO
26         select HAVE_SMI_HANDLER
27         select INTEL_DESCRIPTOR_MODE_CAPABLE
28         select PCR_COMMON_IOSF_1_0
29         select PLATFORM_USES_FSP2_0
30         select SOC_INTEL_COMMON
31         select SOC_INTEL_COMMON_RESET
32         select SOC_INTEL_COMMON_BLOCK
33         select SOC_INTEL_COMMON_BLOCK_CPU
34         select SOC_INTEL_COMMON_BLOCK_ACPI
35         select SOC_INTEL_COMMON_BLOCK_PMC
36         select ACPI_INTEL_HARDWARE_SLEEP_VALUES
37         select SOC_INTEL_COMMON_BLOCK_FAST_SPI
38         select SOC_INTEL_COMMON_BLOCK_GPIO
39         select SOC_INTEL_COMMON_BLOCK_PCR
40         select SOC_INTEL_COMMON_BLOCK_SMBUS
41         select SUPPORT_CPU_UCODE_IN_CBFS
42         select SOUTHBRIDGE_INTEL_COMMON_SMBUS
43         select TSC_MONOTONIC_TIMER
44         select TSC_SYNC_MFENCE
45         select UDELAY_TSC
46         select UDK_2015_BINDING
47         select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
48         select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
49         select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
51 config ECAM_MMCONF_BASE_ADDRESS
52         default 0xe0000000
54 config ECAM_MMCONF_BUS_NUMBER
55         int
56         default 256
58 config FSP_HEADER_PATH
59         default "3rdparty/fsp/DenvertonNSFspBinPkg/Include/"
61 config FSP_FD_PATH
62         default "3rdparty/fsp/DenvertonNSFspBinPkg/FspBin/DenvertonNSFsp.fd"
64 # CAR memory layout on DENVERTON_NS hardware:
65 ## CAR base address - 0xfef00000
66 ## CAR size 1MB - 0x100 (0xfff00)
67 ## coreboot usage:
68 ## DCACHE base - 0xfef00000
69 ## DCACHE size - 0xb0000
70 ## FSP usage:
71 ## FSP base - 0xfefb0000
72 ## FSP size - 0x50000 - 0x100 (0x4ff00)
73 config MAX_CPUS
74         int
75         default 16
77 config PCR_BASE_ADDRESS
78         hex
79         default 0xfd000000
80         help
81           This option allows you to select MMIO Base Address of sideband bus.
83 config DCACHE_RAM_BASE
84         hex
85         default 0xfef00000
87 config DCACHE_RAM_SIZE
88         hex
89         default 0xb0000 if FSP_CAR
90         default 0x100000 if !FSP_CAR
92 config DCACHE_BSP_STACK_SIZE
93         hex
94         default 0x10000
96 config CPU_BCLK_MHZ
97         int
98         default 100
100 config CPU_XTAL_HZ
101         default 24000000
103 config SMM_TSEG_SIZE
104         hex
105         default 0x200000
107 config SMM_RESERVED_SIZE
108         hex
109         default 0x000000
111 config IQAT_ENABLE
112         bool "Enable IQAT"
113         default y
115 config HSUART_DEV
116         hex
117         default 0x1a
119 choice
120         prompt "UART mode selection"
121         default NON_LEGACY_UART_MODE
123 config NON_LEGACY_UART_MODE
124         bool "Non Legacy Mode"
125         help
126           Disable legacy UART mode
128 config LEGACY_UART_MODE
129         bool "Legacy Mode"
130         help
131           Enable legacy UART mode
132         select CONSOLE_SERIAL
133         select DRIVERS_UART
134         select DRIVERS_UART_8250IO
135 endchoice
137 config ENABLE_HSUART
138         depends on NON_LEGACY_UART_MODE
139         bool "Enable High-speed UART debug port selected by UART_FOR_CONSOLE."
140         default n
141         select CONSOLE_SERIAL
142         select DRIVERS_UART
143         select DRIVERS_UART_8250MEM
145 config CONSOLE_UART_BASE_ADDRESS
146         depends on ENABLE_HSUART
147         hex "MMIO base address for UART"
148         default 0xd4000000
150 choice
151         prompt "Cache-as-ram implementation"
152         default USE_DENVERTON_NS_CAR_NEM_ENHANCED
153         help
154           This option allows you to select how cache-as-ram (CAR) is set up.
156 config USE_DENVERTON_NS_CAR_NEM_ENHANCED
157         bool "Enhanced Non-evict mode"
158         select SOC_INTEL_COMMON_BLOCK_CAR
159         select INTEL_CAR_NEM_ENHANCED
160         help
161           A current limitation of NEM (Non-Evict mode) is that code and data sizes
162           are derived from the requirement to not write out any modified cache line.
163           With NEM, if there is no physical memory behind the cached area,
164           the modified data will be lost and NEM results will be inconsistent.
165           ENHANCED NEM guarantees that modified data is always
166           kept in cache while clean data is replaced.
168 config USE_DENVERTON_NS_FSP_CAR
169         bool "Use FSP CAR"
170         select FSP_CAR
171         help
172           Use FSP APIs to initialize and tear down the Cache-As-Ram.
174 endchoice
176 endif ## SOC_INTEL_DENVERTON_NS