blob: 1b1d1915bcbd7f61aabfa5b645a47b60500e45b7 [file] [log] [blame]
Subrata Banikb3ced6a2020-08-04 13:34:03 +05301config SOC_INTEL_ALDERLAKE
2 bool
Angel Ponsa25eaff2020-09-23 15:37:15 +02003 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +05304 select ACPI_ADL_IPU_ES_SUPPORT
Angel Pons8e035e32021-06-22 12:58:20 +02005 select ARCH_X86
Subrata Banikb3ced6a2020-08-04 13:34:03 +05306 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +05307 select CACHE_MRC_SETTINGS
8 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +05309 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhner5307f122021-09-19 00:32:37 +020010 select CPU_SUPPORTS_INTEL_TME
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020011 select CPU_SUPPORTS_PM_TIMER_EMULATION
Matt DeVillierdecbf7b2023-01-18 18:58:38 -060012 select DEFAULT_SOFTWARE_CONNECTION_MANAGER if MAINBOARD_HAS_CHROMEOS
Subrata Banik34f26b22022-02-10 12:38:02 +053013 select DISPLAY_FSP_VERSION_INFO
Eric Lai4ea47c32020-12-21 16:57:49 +080014 select DRIVERS_USB_ACPI
Sean Rhodes7bbc9a52022-07-18 11:31:00 +010015 select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2
Subrata Banik2871e0e2020-09-27 11:30:58 +053016 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik683c95e2020-12-19 19:36:45 +053017 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Subrata Banik292afef2020-09-09 13:34:18 +053018 select FSP_M_XIP
Subrata Banik65b64b32023-04-26 16:36:05 +053019 select FSP_MULTIPHASE_SI_INIT_RETURN_BROKEN
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053020 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banike4cf3fa2022-03-23 01:41:36 +053021 select FSP_USES_CB_DEBUG_EVENT_HANDLER
Subrata Banik298b3592021-09-14 12:38:08 +053022 select FSPS_HAS_ARCH_UPD
Subrata Banik2871e0e2020-09-27 11:30:58 +053023 select GENERIC_GPIO_LIB
Subrata Banikb4a169a2021-12-29 18:36:23 +000024 select HAVE_DEBUG_RAM_SETUP
Subrata Banik2871e0e2020-09-27 11:30:58 +053025 select HAVE_FSP_GOP
Felix Singera182fae2021-12-31 00:30:55 +010026 select HAVE_HYPERTHREADING
Subrata Banikb3ced6a2020-08-04 13:34:03 +053027 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053028 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053029 select IDT_IN_EVERY_STAGE
Subrata Banik2871e0e2020-09-27 11:30:58 +053030 select INTEL_GMA_ACPI
31 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Meera Ravindranath81d367f2021-07-08 09:39:11 +053032 select INTEL_GMA_OPREGION_2_1
Subrata Banikc8b840f2022-12-31 14:47:55 +053033 select INTEL_TXT_LIB
Subrata Banika2473192023-02-22 13:03:04 +000034 select MP_SERVICES_PPI_V2
Subrata Banik292afef2020-09-09 13:34:18 +053035 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053036 select PARALLEL_MP_AP_WORK
Michał Żygowski073779b2022-06-29 11:32:01 +020037 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053038 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053039 select SOC_INTEL_COMMON
Zhixing Ma30e8fc12022-09-30 14:18:13 -070040 select CPU_INTEL_COMMON_VOLTAGE
Subrata Banik08089922020-10-03 13:02:06 +053041 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Lean Sheng Tance68d682023-03-15 15:32:01 +010042 select SOC_INTEL_COMMON_BASECODE
43 select SOC_INTEL_COMMON_BASECODE_RAMTOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053044 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053045 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053046 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Sridahr Siricilla73b90c62021-11-11 01:10:16 +053047 select SOC_INTEL_COMMON_BLOCK_ACPI_CPU_HYBRID
Angel Pons98f672a2021-02-19 19:42:10 +010048 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Jeremy Soller5219ee12022-05-26 09:02:13 -060049 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak5faee2e2021-07-01 08:24:18 -060050 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
51 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053052 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053053 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Varshit B Pandya2938c462022-02-16 20:38:10 +053054 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banikb3ced6a2020-08-04 13:34:03 +053055 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053056 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010057 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053058 select SOC_INTEL_COMMON_BLOCK_DTT
59 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikaf2f8b92022-01-10 10:26:52 +000060 select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
Subrata Banikb3ced6a2020-08-04 13:34:03 +053061 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Krishna Prasad Bhat01e426d2022-01-16 22:37:21 +053062 select SOC_INTEL_COMMON_BLOCK_SCS if SOC_INTEL_ALDERLAKE_PCH_N
Subrata Banik2871e0e2020-09-27 11:30:58 +053063 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banikc176fc22022-04-25 16:59:35 +053064 select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PMC_IPC
Michał Żygowski3d1e5622022-04-08 17:09:49 +020065 select SOC_INTEL_COMMON_BLOCK_IPU if !SOC_INTEL_ALDERLAKE_PCH_S
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060066 select SOC_INTEL_COMMON_BLOCK_IRQ
Dinesh Gehlot930fded2023-02-24 05:09:04 +000067 select SOC_INTEL_COMMON_BLOCK_ME_SPEC_16
Furquan Shaikha1c247b2020-12-31 22:50:14 -080068 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053069 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070070 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053071 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053072 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053073 select SOC_INTEL_COMMON_BLOCK_SMM
74 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banikb2e8bd82021-11-17 15:35:05 +053075 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
Michał Żygowski5f05ee22023-01-18 12:18:00 +010076 select SOC_INTEL_COMMON_BLOCK_VTD
Tim Wawrzynczak242da792020-11-10 10:13:54 -070077 select SOC_INTEL_COMMON_BLOCK_XHCI
78 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053079 select SOC_INTEL_COMMON_FSP_RESET
Angel Ponseb90c512022-07-18 14:41:24 +020080 select SOC_INTEL_COMMON_PCH_CLIENT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053081 select SOC_INTEL_COMMON_RESET
Jeremy Compostellac49efa32023-03-13 10:55:21 -070082 select SOC_INTEL_CSE_SEND_EOP_LATE if !BOARD_GOOGLE_BRYA_COMMON
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060083 select SOC_INTEL_CSE_SET_EOP
Subrata Banikaf27ac22022-02-18 00:44:15 +053084 select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
Sridahr Siricilla096ce142021-09-17 22:25:17 +053085 select HAVE_INTEL_COMPLIANCE_TEST_MODE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053086 select SSE2
87 select SUPPORT_CPU_UCODE_IN_CBFS
88 select TSC_MONOTONIC_TIMER
89 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053090 select UDK_202005_BINDING
Michał Żygowski9b0f1692022-05-05 13:21:01 +020091 select VBOOT_LIB
Lean Sheng Tan86152452023-03-13 14:51:10 +010092 select X86_CLFLUSH_CAR
Elyes Haouasfefb8be2023-08-03 20:46:31 +020093 help
94 Intel Alderlake support. Mainboards should specify the PCH
95 type using the `SOC_INTEL_ALDERLAKE_PCH_*` options instead
96 of selecting this option directly.
97
98config SOC_INTEL_RAPTORLAKE
99 bool
100 select X86_INIT_NEED_1_SIPI
101 help
102 Intel Raptorlake support. Mainboards using RPL should select
103 SOC_INTEL_RAPTORLAKE and SOC_INTEL_ALDERLAKE_PCH_* together.
104
105config SOC_INTEL_ALDERLAKE_PCH_M
106 bool
107 select SOC_INTEL_ALDERLAKE
108 help
109 Choose this option if your mainboard has a PCH-M chipset.
110
111config SOC_INTEL_ALDERLAKE_PCH_N
112 bool
Felix Singer1e889d82023-06-03 06:25:57 +0200113 select HAVE_INTEL_FSP_REPO
Elyes Haouasfefb8be2023-08-03 20:46:31 +0200114 select SOC_INTEL_ALDERLAKE
Elyes Haouasfefb8be2023-08-03 20:46:31 +0200115 help
116 Choose this option if your mainboard has a PCH-N chipset.
117
118config SOC_INTEL_ALDERLAKE_PCH_P
119 bool
120 select SOC_INTEL_ALDERLAKE
121 select HAVE_INTEL_FSP_REPO
122 select PLATFORM_USES_FSP2_3
123 help
124 Choose this option if your mainboard has a PCH-P chipset.
125
126config SOC_INTEL_ALDERLAKE_PCH_S
127 bool
128 select SOC_INTEL_ALDERLAKE
129 select HAVE_INTEL_FSP_REPO if !SOC_INTEL_RAPTORLAKE_PCH_S || (SOC_INTEL_RAPTORLAKE_PCH_S && FSP_TYPE_IOT)
130 select PLATFORM_USES_FSP2_3
131 help
132 Choose this option if your mainboard has a PCH-S chipset.
133
134config SOC_INTEL_RAPTORLAKE_PCH_S
135 bool
136 select SOC_INTEL_ALDERLAKE_PCH_S
137 select SOC_INTEL_RAPTORLAKE
138 help
139 Choose this option if your mainboard has a Raptor Lake PCH-S chipset.
140
141if SOC_INTEL_ALDERLAKE
Subrata Banik2871e0e2020-09-27 11:30:58 +0530142
Michał Żygowski9df95d92022-04-08 17:02:35 +0200143config SOC_INTEL_ALDERLAKE_TCSS_USB4_SUPPORT
144 bool
Michał Żygowski9df95d92022-04-08 17:02:35 +0200145 default n if SOC_INTEL_ALDERLAKE_PCH_S
Michał Żygowskieeba3e72023-06-16 11:15:12 +0200146 default y
Michał Żygowski9df95d92022-04-08 17:02:35 +0200147 select SOC_INTEL_COMMON_BLOCK_TCSS
148 select SOC_INTEL_COMMON_BLOCK_USB4
149 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
150 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
151
Reka Normane790f922022-04-06 20:33:54 +1000152config ALDERLAKE_CONFIGURE_DESCRIPTOR
153 bool
154 help
155 Select this if the descriptor needs to be updated at runtime. This
156 can only be done if the descriptor region is writable, and should only
157 be used as a temporary workaround.
158
Subrata Banik095e2a72021-07-05 20:56:15 +0530159config ALDERLAKE_CAR_ENHANCED_NEM
160 bool
161 default y if !INTEL_CAR_NEM
162 select INTEL_CAR_NEM_ENHANCED
163 select CAR_HAS_SF_MASKS
164 select COS_MAPPED_TO_MSB
165 select CAR_HAS_L3_PROTECTED_WAYS
166
Subrata Banik2871e0e2020-09-27 11:30:58 +0530167config MAX_CPUS
168 int
Tim Crawford35860ff2023-03-06 11:28:40 -0700169 default 32 if SOC_INTEL_RAPTORLAKE
Subrata Banik2871e0e2020-09-27 11:30:58 +0530170 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530171
172config DCACHE_RAM_BASE
173 default 0xfef00000
174
175config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530176 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530177 help
178 The size of the cache-as-ram region required during bootblock
179 and/or romstage.
180
181config DCACHE_BSP_STACK_SIZE
182 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530183 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530184 help
185 The amount of anticipated stack usage in CAR by bootblock and
186 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530187 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530188 (~1KiB).
189
190config FSP_TEMP_RAM_SIZE
191 hex
192 default 0x20000
193 help
194 The amount of anticipated heap usage in CAR by FSP.
195 Refer to Platform FSP integration guide document to know
196 the exact FSP requirement for Heap setup.
197
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700198config CHIPSET_DEVICETREE
199 string
Michał Kopeć75a49fe2022-04-08 11:28:45 +0200200 default "soc/intel/alderlake/chipset_pch_s.cb" if SOC_INTEL_ALDERLAKE_PCH_S
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700201 default "soc/intel/alderlake/chipset.cb"
202
Subrata Banik683c95e2020-12-19 19:36:45 +0530203config EXT_BIOS_WIN_BASE
204 default 0xf8000000
205
206config EXT_BIOS_WIN_SIZE
207 default 0x2000000
208
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530209config IFD_CHIPSET
210 string
211 default "adl"
212
213config IED_REGION_SIZE
214 hex
215 default 0x400000
216
217config HEAP_SIZE
218 hex
Subrata Banik03dfc212023-08-16 02:50:16 +0530219 default 0x80000 if BMP_LOGO
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530220 default 0x10000
221
Jeremy Compostella9df11972022-12-02 10:59:49 -0700222config GFX_GMA_DEFAULT_MMIO
Jeremy Compostella0ad40032023-01-30 14:18:21 -0700223 default 0xaf000000 if MAINBOARD_HAS_EARLY_LIBGFXINIT
Jeremy Compostella9df11972022-12-02 10:59:49 -0700224
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700225# Intel recommends reserving the following resources per PCIe TBT root port,
226# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
227# - 42 buses
228# - 194 MiB Non-prefetchable memory
229# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700230if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700231
232config PCIEXP_HOTPLUG_BUSES
233 int
234 default 42
235
236config PCIEXP_HOTPLUG_MEM
237 hex
238 default 0xc200000
239
240config PCIEXP_HOTPLUG_PREFETCH_MEM
241 hex
242 default 0x1c000000
243
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700244endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700245
Subrata Banik85144d92021-01-09 16:17:45 +0530246config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530247 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530248 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530249 default 12 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100250 default 12 if SOC_INTEL_ALDERLAKE_PCH_P
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200251 default 28 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik2871e0e2020-09-27 11:30:58 +0530252
Subrata Banik85144d92021-01-09 16:17:45 +0530253config MAX_CPU_ROOT_PORTS
254 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530255 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530256 default 0 if SOC_INTEL_ALDERLAKE_PCH_N
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200257 default 3 if SOC_INTEL_ALDERLAKE_PCH_P || SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik85144d92021-01-09 16:17:45 +0530258
MAULIK V VAGHELA3e4f28f2022-01-21 14:17:53 +0530259config MAX_TBT_ROOT_PORTS
260 int
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200261 default 0 if SOC_INTEL_ALDERLAKE_PCH_N || SOC_INTEL_ALDERLAKE_PCH_S
MAULIK V VAGHELA3e4f28f2022-01-21 14:17:53 +0530262 default 2 if SOC_INTEL_ALDERLAKE_PCH_M
263 default 4 if SOC_INTEL_ALDERLAKE_PCH_P
264
Subrata Banik85144d92021-01-09 16:17:45 +0530265config MAX_ROOT_PORTS
266 int
267 default MAX_PCH_ROOT_PORTS
268
Subrata Banikcffc9382021-01-29 18:41:35 +0530269config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530270 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530271 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530272 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Cliff Huang0d590b72022-04-28 18:20:27 -0700273 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Angel Pons122e1df2022-12-09 12:32:12 +0100274 default 18 if SOC_INTEL_ALDERLAKE_PCH_S
Cliff Huang0d590b72022-04-28 18:20:27 -0700275 help
276 With external clock buffer, Alderlake-P can support up to three additional source clocks.
277 This is done by setting the corresponding GPIO pin(s) to native function to use as
278 SRCCLK_OE[6..9]. In addition, SRCCLK6 does not need to be set to free running clock.
279 If any of SRCCLKReq 6..9 is asserted, SRCCLK6 will be turned on.
Subrata Banikcffc9382021-01-29 18:41:35 +0530280
281config MAX_PCIE_CLOCK_REQ
282 int
Angel Ponsdb925aa2021-12-01 11:44:09 +0100283 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530284 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100285 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200286 default 18 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik2871e0e2020-09-27 11:30:58 +0530287
288config SMM_TSEG_SIZE
289 hex
290 default 0x800000
291
292config SMM_RESERVED_SIZE
293 hex
294 default 0x200000
295
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530296config PCR_BASE_ADDRESS
297 hex
Michał Żygowskidccfb8a2022-04-07 15:09:19 +0200298 default 0xe0000000 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530299 default 0xfd000000
300 help
301 This option allows you to select MMIO Base Address of sideband bus.
302
Shelley Chen4e9bb332021-10-20 15:43:45 -0700303config ECAM_MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530304 default 0xc0000000
305
306config CPU_BCLK_MHZ
307 int
308 default 100
309
Sridhar Siricillad9c82692023-01-05 17:08:17 +0530310config SOC_INTEL_PERFORMANCE_CORE_SCALE_FACTOR
311 int
312 default 127
313
314config SOC_INTEL_EFFICIENT_CORE_SCALE_FACTOR
315 int
316 default 100
317
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530318config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
319 int
320 default 120
321
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200322config CPU_XTAL_HZ
323 default 38400000
324
Meera Ravindranathd307d0d2022-07-21 20:45:32 +0530325config SOC_INTEL_UFS_CLK_FREQ_HZ
326 int
327 default 19200000
328
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530329config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
330 int
331 default 133
332
333config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
334 int
335 default 7
336
337config SOC_INTEL_I2C_DEV_MAX
338 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530339 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530340
Lean Sheng Tan1ec8f972022-09-07 16:07:33 +0200341config ENABLE_SATA_TEST_MODE
342 bool "Enable test mode for SATA margining"
343 default n
344 help
345 Enable SATA test mode in FSP-S.
346
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530347config SOC_INTEL_UART_DEV_MAX
348 int
349 default 7
350
351config CONSOLE_UART_BASE_ADDRESS
352 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800353 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530354 depends on INTEL_LPSS_UART_FOR_CONSOLE
355
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530356config VBT_DATA_SIZE_KB
357 int
358 default 9
359
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530360# Clock divider parameters for 115200 baud rate
Angel Pons054ff5e2022-06-26 10:19:53 +0200361# Baudrate = (UART source clock * M) /(N *16)
Wonkyu Kim60d9b892022-10-10 23:01:38 -0700362# ADL UART source clock: 100MHz
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530363config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
364 hex
365 default 0x25a
366
367config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
368 hex
369 default 0x7fff
370
Subrata Banik292afef2020-09-09 13:34:18 +0530371config VBOOT
Subrata Banik292afef2020-09-09 13:34:18 +0530372 select VBOOT_MUST_REQUEST_DISPLAY
373 select VBOOT_STARTS_IN_BOOTBLOCK
374 select VBOOT_VBNV_CMOS
375 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530376 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530377
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530378# Default hash block size is 1KiB. Increasing it to 4KiB to improve
379# hashing time as well as read time. This helps in improving
380# boot time for Alder Lake.
381config VBOOT_HASH_BLOCK_SIZE
382 hex
383 default 0x1000
384
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530385config CBFS_SIZE
Felix Singerd486fc32023-07-03 11:13:19 +0000386 default 0x400000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530387
388config PRERAM_CBMEM_CONSOLE_SIZE
389 hex
Tarun Tuli2b038942023-01-24 13:50:17 +0000390 default 0x4000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530391
Tarun Tulidf74d9b2023-01-24 13:28:06 +0000392config CONSOLE_CBMEM_BUFFER_SIZE
393 hex
Subrata Banik52595682023-07-17 13:05:37 +0530394 default 0x100000 if BUILDING_WITH_DEBUG_FSP
Tarun Tulidf74d9b2023-01-24 13:28:06 +0000395 default 0x40000
396
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200397config FSP_TYPE_IOT
398 bool
399 default n
400 help
401 This option allows to select FSP IOT type from 3rdparty/fsp repo
402
Subrata Banikee735942020-09-07 17:52:23 +0530403config FSP_HEADER_PATH
404 string "Location of FSP headers"
Sean Rhodese3d9b0a2023-08-09 10:58:32 +0100405 default "src/vendorcode/intel/fsp/fsp2_0/alderlake_n/" if SOC_INTEL_ALDERLAKE_PCH_N && !FSP_USE_REPO
406 default "src/vendorcode/intel/fsp/fsp2_0/raptorlake/4221.00_google/" if VENDOR_GOOGLE && SOC_INTEL_RAPTORLAKE && !FSP_USE_REPO
407 default "src/vendorcode/intel/fsp/fsp2_0/raptorlake/4301.01/" if SOC_INTEL_RAPTORLAKE && !FSP_USE_REPO
Michał Żygowskieeba3e72023-06-16 11:15:12 +0200408 default "3rdparty/fsp/RaptorLakeFspBinPkg/IoT/RaptorLakeS/Include/" if SOC_INTEL_RAPTORLAKE_PCH_S && FSP_TYPE_IOT
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200409 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeP/Include/" if SOC_INTEL_ALDERLAKE_PCH_P && FSP_TYPE_IOT
410 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeS/Include/" if SOC_INTEL_ALDERLAKE_PCH_S && FSP_TYPE_IOT
Michał Żygowski073779b2022-06-29 11:32:01 +0200411 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeP/Include/" if SOC_INTEL_ALDERLAKE_PCH_P
412 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeS/Include/" if SOC_INTEL_ALDERLAKE_PCH_S
Felix Singer1e889d82023-06-03 06:25:57 +0200413 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeN/Include/" if SOC_INTEL_ALDERLAKE_PCH_N
Michał Żygowski01025d32023-07-12 13:22:09 +0200414 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/" if !FSP_USE_REPO
Subrata Banikee735942020-09-07 17:52:23 +0530415
416config FSP_FD_PATH
417 string
418 depends on FSP_USE_REPO
Michał Żygowskieeba3e72023-06-16 11:15:12 +0200419 default "3rdparty/fsp/RaptorLakeFspBinPkg/IoT/RaptorLakeS/FSP.fd" if SOC_INTEL_RAPTORLAKE_PCH_S && FSP_TYPE_IOT
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200420 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeP/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_P && FSP_TYPE_IOT
421 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeS/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_S && FSP_TYPE_IOT
Michał Żygowski073779b2022-06-29 11:32:01 +0200422 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeP/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_P
423 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeS/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_S
Felix Singer1e889d82023-06-03 06:25:57 +0200424 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeN/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_N
Subrata Banik292afef2020-09-09 13:34:18 +0530425
426config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
427 int "Debug Consent for ADL"
Subrata Banik0cd553b2021-12-29 08:09:37 +0000428 # USB DBC is more common for developers so make this default to 2 if
Subrata Banik292afef2020-09-09 13:34:18 +0530429 # SOC_INTEL_DEBUG_CONSENT=y
Kane Chen0e9a6162021-11-23 14:42:48 +0800430 default 2 if SOC_INTEL_DEBUG_CONSENT
Subrata Banik292afef2020-09-09 13:34:18 +0530431 default 0
432 help
433 This is to control debug interface on SOC.
434 Setting non-zero value will allow to use DBC or DCI to debug SOC.
435 PlatformDebugConsent in FspmUpd.h has the details.
436
437 Desired platform debug type are
Kane Chen0e9a6162021-11-23 14:42:48 +0800438 0:Disabled, 2:Enabled (All Probes+TraceHub), 6:Enable (Low Power),
439 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800440
441config DATA_BUS_WIDTH
442 int
443 default 128
444
445config DIMMS_PER_CHANNEL
446 int
447 default 2
448
449config MRC_CHANNEL_WIDTH
450 int
451 default 16
452
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +0530453config ACPI_ADL_IPU_ES_SUPPORT
454 def_bool n
455 help
456 Enables ACPI entry to provide silicon type information to IPU kernel driver.
457
Subrata Banika00db942022-10-12 14:24:41 +0530458config ALDERLAKE_ENABLE_SOC_WORKAROUND
459 bool
460 default y
Meera Ravindranath9e4488a2022-10-10 10:48:18 +0530461 select SOC_INTEL_UFS_LTR_DISQUALIFY
Subrata Banika00db942022-10-12 14:24:41 +0530462 select SOC_INTEL_UFS_OCP_TIMER_DISABLE
463 help
464 Selects the workarounds applicable for Alder Lake SoC.
465
Subrata Banik76d49a72023-01-16 16:33:18 +0530466config USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS
467 bool
468 help
469 Alder Lake SoC based OEM board design with UFS and non-UFS planned to use an
470 unified AP firmware which demanded to have a unified descriptor. It means UFS
471 controller needs to default fuse enabled to let UFS SKU to boot.
472
473 On such design with non-UFS SKU is exhibiting S0ix failure due to UFS remain
474 enabled in the strap although FSP-S is making the UFS controller function
475 disabled. The potential root cause of this behaviour is although the UFS
476 controller is function disabled but MPHY clock is still in active state.
477
478 A possible solution to this problem is to issue a warm reboot (if boot path is
479 S5->S0 or G3->S0) after disabling the UFS and let PMC to read the function
480 disable state of the UFS for disabling the MPHY clock.
481
482 Mainboard users with such board design where OEM would like to use an unified AP
483 firmware to support both UFS and non-UFS sku booting might need to choose this
484 config to allow disabling UFS while booting on the non-UFS SKU.
485 Note: selection of this config would introduce an additional warm reset in
486 cold-reset scenarios due to function disabling of the UFS controller.
487
Furquan Shaikhf888c682021-10-05 21:37:33 -0700488if STITCH_ME_BIN
489
490config CSE_BPDT_VERSION
491 default "1.7"
492
493endif
494
Sridhar Siricillab24c5282022-02-23 12:19:04 +0530495config SI_DESC_REGION
496 string "Descriptor Region name"
497 default "SI_DESC"
498 help
499 Name of Descriptor Region in the FMAP
500
501config SI_DESC_REGION_SZ
502 int
503 default 4096
504 help
505 Size of Descriptor Region in the FMAP
506
Kangheui Won96787222022-06-28 15:52:43 +1000507config BUILDING_WITH_DEBUG_FSP
508 bool "Debug FSP is used for the build"
509 default n
510 help
511 Set this option if debug build of FSP is used.
512
Tim Crawfordc6529c72022-11-01 11:42:28 -0600513config INTEL_GMA_BCLV_OFFSET
514 default 0xc8258
515
516config INTEL_GMA_BCLV_WIDTH
517 default 32
518
519config INTEL_GMA_BCLM_OFFSET
520 default 0xc8254
521
522config INTEL_GMA_BCLM_WIDTH
523 default 32
524
Kapil Porwal23ef60d2023-01-16 16:07:48 +0000525config FSP_PUBLISH_MBP_HOB
526 bool
527 default n if CHROMEOS && (SOC_INTEL_RAPTORLAKE || SOC_INTEL_ALDERLAKE_PCH_N)
528 default y
529 help
530 This is to control creation of ME_BIOS_PAYLOAD_HOB (MBP HOB) by FSP.
531 Disabling it for the platforms, which do not use MBP HOB, can improve the boot time.
532
533 Note: It cannot be disabled for ADL-P based platforms because ADL-P FSP relies on
534 MBP HOB for ChipsetInit version for ChipsetInit sync. As ChipsetInit sync doesn't
535 occur if no MBP HOB, so it results S0ix issue. This limitation is addressed in the
536 later platforms so creation of MBP HOB can be skipped for ADL-N and RPL based
537 platforms.
538
Michał Żygowski95be0122022-10-29 21:32:54 +0200539config INCLUDE_HSPHY_IN_FMAP
540 bool "Include PCIe 5.0 HSPHY firmware in flash"
541 default n
542 help
543 Set this option to cache the PCIe 5.0 HSPHY firmware after it is
544 fetched from ME during boot. By default coreboot will fetch the
545 HSPHY FW from ME, but if for some reason ME is not enabled or
546 visible, the cached blob will be attempted to initialize the PCIe
547 5.0 root port. Select it if ME is soft disabled or disabled with HAP
548 bit. If possible, the HSPHY FW will be saved to flashmap region if
549 the firmware file is not provided directly in the HSPHY_FW_FILE
550 Kconfig.
551
552config HSPHY_FW_FILE
553 string "HSPHY firmware file path"
554 depends on INCLUDE_HSPHY_IN_FMAP
555 help
556 Path pointing to the PCIe 5.0 HSPHY file. The file can be extracted
557 from full firmware image or ME region using UEFITool. If left empty,
558 HSPHY loading procedure will try to save the firmware to the flashmap
559 region if fetched successfully from ME.
560
561config HSPHY_FW_MAX_SIZE
562 hex
563 default 0x8000
564
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530565endif