blob: 2de22b8c580d11d6eafa5ce28418e607109ab5a9 [file] [log] [blame]
Arthur Heymans4c7979a2019-06-17 14:30:10 +02001config SOC_INTEL_COMMON_SKYLAKE_BASE
2 bool
3
Lee Leahyb0005132015-05-12 18:19:47 -07004config SOC_INTEL_SKYLAKE
5 bool
Arthur Heymans4c7979a2019-06-17 14:30:10 +02006 select SOC_INTEL_COMMON_SKYLAKE_BASE
Lee Leahyb0005132015-05-12 18:19:47 -07007
Rizwan Qureshi0700dca2017-02-09 15:57:45 +05308config SOC_INTEL_KABYLAKE
9 bool
Arthur Heymans4c7979a2019-06-17 14:30:10 +020010 select SOC_INTEL_COMMON_SKYLAKE_BASE
Rizwan Qureshi0700dca2017-02-09 15:57:45 +053011
Timofey Komarov756f51b2021-04-27 10:54:34 +030012config SOC_INTEL_SKYLAKE_LGA1151_V2
13 bool
14 select PLATFORM_USES_FSP2_1
15 select SOC_INTEL_COMMON_SKYLAKE_BASE
16 select SKYLAKE_SOC_PCH_H
17 help
18 Selected by mainboards with a LGA1151 v2 socket and a Z370, H310C or B365 PCH
19
Arthur Heymans4c7979a2019-06-17 14:30:10 +020020if SOC_INTEL_COMMON_SKYLAKE_BASE
Lee Leahyb0005132015-05-12 18:19:47 -070021
22config CPU_SPECIFIC_OPTIONS
23 def_bool y
Aaron Durbine0a49142016-07-13 23:20:51 -050024 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Vadim Bendebury5542bb62018-02-05 19:59:09 -080025 select ACPI_NHLT
Angel Pons8e035e32021-06-22 12:58:20 +020026 select ARCH_X86
Aaron Durbine8e118d2016-08-12 15:00:10 -050027 select BOOT_DEVICE_SUPPORTS_WRITES
Lee Leahyb0005132015-05-12 18:19:47 -070028 select CACHE_MRC_SETTINGS
Nico Huber6275e342018-11-21 00:11:35 +010029 select CPU_INTEL_COMMON
Lee Leahyb0005132015-05-12 18:19:47 -070030 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020031 select CPU_SUPPORTS_PM_TIMER_EMULATION
Benjamin Doron27af8da2021-02-26 04:36:05 +000032 select FSP_COMPRESS_FSP_S_LZ4
Michael Niewöhner0f91f792019-10-05 19:47:47 +020033 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053034 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Aaron Durbinffdf9012015-07-24 13:00:36 -050035 select GENERIC_GPIO_LIB
Vadim Bendebury5542bb62018-02-05 19:59:09 -080036 select HAVE_FSP_GOP
Wim Vervoornd1371502019-12-17 14:10:16 +010037 select HAVE_FSP_LOGO_SUPPORT
Felix Singerbd7020d2020-12-06 11:32:25 +010038 select HAVE_INTEL_FSP_REPO
Shreesh Chhabbi87c7ec72020-12-03 14:07:15 -080039 select INTEL_CAR_NEM_ENHANCED
Lee Leahyb0005132015-05-12 18:19:47 -070040 select HAVE_SMI_HANDLER
Felix Singerbd7020d2020-12-06 11:32:25 +010041 select INTEL_DESCRIPTOR_MODE_CAPABLE
Patrick Rudolphc7edf182017-09-26 19:34:35 +020042 select INTEL_GMA_ACPI
Michael Niewöhner0f91f792019-10-05 19:47:47 +020043 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Lee Leahyb0005132015-05-12 18:19:47 -070044 select IOAPIC
Duncan Laurie205ed2d2016-06-02 15:23:42 -070045 select MRC_SETTINGS_PROTECT
Furquan Shaikha5853582017-05-06 12:40:15 -070046 select PARALLEL_MP_AP_WORK
Michael Niewöhner0f91f792019-10-05 19:47:47 +020047 select PLATFORM_USES_FSP2_0
Michael Niewöhnera1843d82020-10-02 18:28:22 +020048 select PM_ACPI_TIMER_OPTIONAL
Julien Viard de Galbert2912e8e2018-08-14 16:15:26 +020049 select PMC_GLOBAL_RESET_ENABLE_LOCK
Felix Singerbd7020d2020-12-06 11:32:25 +010050 select REG_SCRIPT
51 select SA_ENABLE_DPR
Lee Leahy1d14b3e2015-05-12 18:23:27 -070052 select SOC_INTEL_COMMON
Duncan Lauriea1c8b34d2015-09-08 16:12:44 -070053 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banike074d622017-02-16 16:16:37 +053054 select SOC_INTEL_COMMON_BLOCK
Angel Pons98f672a2021-02-19 19:42:10 +010055 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner11fae4f2021-01-01 21:23:52 +010056 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak277334e2021-07-01 09:04:06 -060057 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
Nico Huber2f1ef982018-11-07 16:24:50 +010058 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banikc4986eb2018-05-09 14:55:09 +053059 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Barnali Sarkar0a203d12017-05-04 18:02:17 +053060 select SOC_INTEL_COMMON_BLOCK_CPU
Barnali Sarkar73273862017-06-13 20:22:33 +053061 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010062 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Furquan Shaikh2c368892018-10-18 16:22:37 -070063 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Vadim Bendebury5542bb62018-02-05 19:59:09 -080064 select SOC_INTEL_COMMON_BLOCK_GPIO_PADCFG_PADTOL
Furquan Shaikh05a6f292017-03-31 14:02:47 -070065 select SOC_INTEL_COMMON_BLOCK_GSPI
Furquan Shaikh31bff012018-09-29 23:31:04 -070066 select SOC_INTEL_COMMON_BLOCK_HDA
Arthur Heymans1ae8cd12020-11-19 13:59:53 +010067 select SOC_INTEL_COMMON_BLOCK_PMC_DISCOVERABLE
Subrata Banik93ebe492017-03-14 18:24:47 +053068 select SOC_INTEL_COMMON_BLOCK_SA
Duncan Laurie1e066112020-04-08 11:35:52 -070069 select SOC_INTEL_COMMON_BLOCK_SCS
Pratik Prajapatia04aa3d2017-06-12 23:02:36 -070070 select SOC_INTEL_COMMON_BLOCK_SGX
Michael Niewöhnerc169a472019-10-31 19:01:23 +010071 select SOC_INTEL_COMMON_BLOCK_SGX_LOCK_MEMORY
Subrata Banikece173c2017-12-14 18:18:34 +053072 select SOC_INTEL_COMMON_BLOCK_SMM
73 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik2fff3912020-01-16 10:13:28 +053074 select SOC_INTEL_COMMON_BLOCK_THERMAL
Subrata Banikafa07f72018-05-24 12:21:06 +053075 select SOC_INTEL_COMMON_BLOCK_UART
Karthikeyan Ramasubramaniancc7cdb12019-03-20 11:38:01 -060076 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053077 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikf513ceb2018-05-17 15:57:43 +053078 select SOC_INTEL_COMMON_PCH_BASE
Aaron Durbinc14a1a92016-06-28 15:41:07 -050079 select SOC_INTEL_COMMON_NHLT
Lee Leahy1d14b3e2015-05-12 18:23:27 -070080 select SOC_INTEL_COMMON_RESET
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +053081 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Nico Huberdd274e22020-04-26 20:37:32 +020082 select SOC_INTEL_CONFIGURE_DDI_A_4_LANES
Lee Leahyb0005132015-05-12 18:19:47 -070083 select SSE2
84 select SUPPORT_CPU_UCODE_IN_CBFS
Aamir Bohra842776e2017-05-25 14:12:01 +053085 select TSC_MONOTONIC_TIMER
Lee Leahyb0005132015-05-12 18:19:47 -070086 select TSC_SYNC_MFENCE
87 select UDELAY_TSC
Michael Niewöhner0f91f792019-10-05 19:47:47 +020088 select UDK_2015_BINDING
Lee Leahyb0005132015-05-12 18:19:47 -070089
Felix Singer9a6a18e2021-01-04 22:10:26 +000090config MAX_CPUS
91 int
Timofey Komarov756f51b2021-04-27 10:54:34 +030092 default 16 if MAINBOARD_SUPPORTS_COFFEELAKE_CPU
Felix Singer9a6a18e2021-01-04 22:10:26 +000093 default 8
94
Patrick Rudolph203061c2019-09-02 09:35:21 +020095config FSP_HYPERTHREADING
96 bool "Enable Hyper-Threading"
Patrick Rudolph203061c2019-09-02 09:35:21 +020097 default y
98
Angel Pons8f3e1192021-04-04 16:20:54 +020099config ENABLE_SATA_TEST_MODE
100 bool "Enable SATA test mode"
101 default n
102 help
103 Enable SATA test mode in FSP-S.
104
Arthur Heymans27d3f712018-01-05 17:51:46 +0100105config CPU_INTEL_NUM_FIT_ENTRIES
106 int
107 default 10
108
Julius Werner58c39382017-02-13 17:53:29 -0800109config VBOOT
Julius Werner58c39382017-02-13 17:53:29 -0800110 select VBOOT_SEPARATE_VERSTAGE
Joel Kitching6672bd82019-04-10 16:06:21 +0800111 select VBOOT_MUST_REQUEST_DISPLAY
Aaron Durbina6914d22016-08-24 08:49:29 -0500112 select VBOOT_STARTS_IN_BOOTBLOCK
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -0700113 select VBOOT_VBNV_CMOS
114 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Furquan Shaikh610a33a2016-07-22 16:17:53 -0700115
Martin Roth59ff3402016-02-09 09:06:46 -0700116config CBFS_SIZE
Martin Roth59ff3402016-02-09 09:06:46 -0700117 default 0x200000
118
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700119config DCACHE_RAM_BASE
Arthur Heymans432ac612017-06-13 14:17:05 +0200120 hex
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700121 default 0xfef00000
122
123config DCACHE_RAM_SIZE
Arthur Heymans432ac612017-06-13 14:17:05 +0200124 hex
Rizwan Qureshi3ad63562016-08-14 15:48:33 +0530125 default 0x40000
Lee Leahyb0005132015-05-12 18:19:47 -0700126 help
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700127 The size of the cache-as-ram region required during bootblock
128 and/or romstage.
Lee Leahyb0005132015-05-12 18:19:47 -0700129
Subrata Banik68d5d8b2016-07-18 14:13:52 +0530130config DCACHE_BSP_STACK_SIZE
131 hex
Timofey Komarov756f51b2021-04-27 10:54:34 +0300132 default 0x20400 if FSP_USES_CB_STACK
Subrata Banik68d5d8b2016-07-18 14:13:52 +0530133 default 0x4000
134 help
135 The amount of anticipated stack usage in CAR by bootblock and
136 other stages.
137
Timofey Komarov756f51b2021-04-27 10:54:34 +0300138config FSP_TEMP_RAM_SIZE
139 hex
140 depends on FSP_USES_CB_STACK
141 default 0x10000
142 help
143 The amount of anticipated heap usage in CAR by FSP.
144 Refer to Platform FSP integration guide document to know
145 the exact FSP requirement for Heap setup.
146
Subrata Banik086730b2015-12-02 11:42:04 +0530147config EXCLUDE_NATIVE_SD_INTERFACE
148 bool
149 default n
150 help
151 If you set this option to n, will not use native SD controller.
152
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700153config HEAP_SIZE
154 hex
155 default 0x80000
156
157config IED_REGION_SIZE
158 hex
159 default 0x400000
160
Subrata Banike7ceae72017-03-08 17:59:40 +0530161config PCR_BASE_ADDRESS
162 hex
163 default 0xfd000000
164 help
165 This option allows you to select MMIO Base Address of sideband bus.
166
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700167config SMM_RESERVED_SIZE
168 hex
169 default 0x200000
170
171config SMM_TSEG_SIZE
172 hex
173 default 0x800000
174
Lee Leahy1d14b3e2015-05-12 18:23:27 -0700175config VGA_BIOS_ID
176 string
177 default "8086,0406"
Lee Leahyb0005132015-05-12 18:19:47 -0700178
Teo Boon Tiong2fc06c82016-09-15 11:11:45 +0800179config SKYLAKE_SOC_PCH_H
180 bool
181 default n
Teo Boon Tiong2fc06c82016-09-15 11:11:45 +0800182
Benjamin Doroneecaf362020-08-04 06:45:46 +0000183config NHLT_DMIC_1CH
184 bool
185 default n
186 help
187 Include DSP firmware settings for 1 channel DMIC array.
188
Aaron Durbined8a7232015-11-24 12:35:06 -0600189config NHLT_DMIC_2CH
190 bool
191 default n
192 help
193 Include DSP firmware settings for 2 channel DMIC array.
194
195config NHLT_DMIC_4CH
196 bool
197 default n
198 help
199 Include DSP firmware settings for 4 channel DMIC array.
200
201config NHLT_NAU88L25
202 bool
203 default n
204 help
205 Include DSP firmware settings for nau88l25 headset codec.
206
207config NHLT_MAX98357
208 bool
209 default n
210 help
211 Include DSP firmware settings for max98357 amplifier.
212
Duncan Lauriee6c8a382018-03-26 02:45:02 -0700213config NHLT_MAX98373
214 bool
215 default n
216 help
217 Include DSP firmware settings for max98373 amplifier.
218
Aaron Durbined8a7232015-11-24 12:35:06 -0600219config NHLT_SSM4567
220 bool
221 default n
222 help
223 Include DSP firmware settings for ssm4567 smart amplifier.
224
Duncan Laurie4a75a662017-03-02 10:13:51 -0800225config NHLT_RT5514
226 bool
227 default n
228 help
229 Include DSP firmware settings for rt5514 DSP.
230
Rizwan Qureshi17335fa2017-01-14 06:08:21 +0530231config NHLT_RT5663
232 bool
233 default n
234 help
235 Include DSP firmware settings for rt5663 headset codec.
236
237config NHLT_MAX98927
238 bool
239 default n
240 help
241 Include DSP firmware settings for max98927 amplifier.
242
Naveen Manohar83670c52017-11-04 02:55:09 +0530243config NHLT_DA7219
244 bool
245 default n
246 help
247 Include DSP firmware settings for DA7219 headset codec.
248
Timofey Komarov756f51b2021-04-27 10:54:34 +0300249# Use KabylakeFsp for both Skylake and Kabylake as it supports both.
250# SkylakeFsp is FSP 1.1 and therefore incompatible.
Patrick Georgi6539e102018-09-13 11:48:43 -0400251config FSP_HEADER_PATH
Timofey Komarov756f51b2021-04-27 10:54:34 +0300252 default "3rdparty/fsp/AmberLakeFspBinPkg/Include/" if SOC_INTEL_SKYLAKE_LGA1151_V2
Michael Niewöhner0f91f792019-10-05 19:47:47 +0200253 default "3rdparty/fsp/KabylakeFspBinPkg/Include/"
Patrick Georgi6539e102018-09-13 11:48:43 -0400254
255config FSP_FD_PATH
Timofey Komarov756f51b2021-04-27 10:54:34 +0300256 default "3rdparty/fsp/AmberLakeFspBinPkg/Fsp.fd" if SOC_INTEL_SKYLAKE_LGA1151_V2
Michael Niewöhner0f91f792019-10-05 19:47:47 +0200257 default "3rdparty/fsp/KabylakeFspBinPkg/Fsp.fd"
Patrick Georgi6539e102018-09-13 11:48:43 -0400258
Rizwan Qureshid8bb69a2016-11-08 21:01:09 +0530259config MAX_ROOT_PORTS
260 int
Michael Niewöhner0f91f792019-10-05 19:47:47 +0200261 default 24
Rizwan Qureshid8bb69a2016-11-08 21:01:09 +0530262
Jenny TC2864f852017-02-09 16:01:59 +0530263config NO_FADT_8042
264 bool
265 default n
266 help
267 Choose this option if you want to disable 8042 Keyboard
268
Aaron Durbin551e4be2018-04-10 09:24:54 -0600269config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
Furquan Shaikh340908a2017-04-04 11:47:19 -0700270 int
271 default 120
272
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200273config CPU_XTAL_HZ
274 default 24000000
275
Chris Chingb8dc63b2017-12-06 14:26:15 -0700276config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
277 int
Aaron Durbin551e4be2018-04-10 09:24:54 -0600278 default SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
Chris Chingb8dc63b2017-12-06 14:26:15 -0700279
Furquan Shaikh05a6f292017-03-31 14:02:47 -0700280config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
281 int
282 default 2
283
Subrata Banikc4986eb2018-05-09 14:55:09 +0530284config SOC_INTEL_I2C_DEV_MAX
285 int
286 default 6
287
Aamir Bohra1041d392017-06-02 11:56:14 +0530288config CPU_BCLK_MHZ
289 int
290 default 100
291
Nico Huber99954182019-05-29 23:33:06 +0200292config CONSOLE_UART_BASE_ADDRESS
293 hex
294 default 0xfe030000
295 depends on INTEL_LPSS_UART_FOR_CONSOLE
296
Furquan Shaikh3406dd62017-08-04 15:58:26 -0700297# Clock divider parameters for 115200 baud rate
298config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
299 hex
300 default 0x30
301
302config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
303 hex
304 default 0xc35
305
Felix Singer424467c2020-10-12 19:51:02 +0000306config CHIPSET_DEVICETREE
307 string
308 default "soc/intel/skylake/chipset.cb"
309
Furquan Shaikha3ad9902018-03-21 10:45:08 -0700310config IFD_CHIPSET
311 string
312 default "sklkbl"
313
Patrick Rudolph5fffb5e2019-07-25 11:55:30 +0200314config INTEL_TXT_BIOSACM_ALIGNMENT
315 hex
316 default 0x40000 # 256KB
317
Wim Vervoorn2ab4f4b2019-10-23 10:22:06 +0200318config MAINBOARD_SUPPORTS_SKYLAKE_CPU
319 bool "Board can contain Skylake CPU"
Timofey Komarov756f51b2021-04-27 10:54:34 +0300320 default !SOC_INTEL_SKYLAKE_LGA1151_V2
Wim Vervoorn2ab4f4b2019-10-23 10:22:06 +0200321
322if SKYLAKE_SOC_PCH_H
323
324config MAINBOARD_SUPPORTS_KABYLAKE_CPU
325 bool "Board can contain Kaby Lake CPU"
Timofey Komarov756f51b2021-04-27 10:54:34 +0300326 default !SOC_INTEL_SKYLAKE_LGA1151_V2 && SOC_INTEL_KABYLAKE
Wim Vervoorn2ab4f4b2019-10-23 10:22:06 +0200327
Timofey Komarov7e7d27b2021-04-27 11:00:10 +0300328config MAINBOARD_SUPPORTS_COFFEELAKE_CPU
329 bool "Board can contain Coffee Lake CPU"
Timofey Komarov756f51b2021-04-27 10:54:34 +0300330 default y if SOC_INTEL_SKYLAKE_LGA1151_V2
Timofey Komarov7e7d27b2021-04-27 11:00:10 +0300331
Wim Vervoorn2ab4f4b2019-10-23 10:22:06 +0200332endif
333
334if !SKYLAKE_SOC_PCH_H
335
336config MAINBOARD_SUPPORTS_KABYLAKE_DUAL
337 bool "Board can contain Kaby Lake DUAL core"
338 default y
339
340config MAINBOARD_SUPPORTS_KABYLAKE_QUAD
341 bool "Board can contain Kaby Lake QUAD core"
342 default y
343
344endif
345
Lee Leahyb0005132015-05-12 18:19:47 -0700346endif