blob: ae612ec7e3b6344ecc831d14deca743cb1a3bb8c [file] [log] [blame]
Ravi Sarawadib8224f42022-04-10 23:31:24 -07001config SOC_INTEL_METEORLAKE
2 bool
3
4if SOC_INTEL_METEORLAKE
5
6config CPU_SPECIFIC_OPTIONS
7 def_bool y
8 select ARCH_X86
9 select BOOT_DEVICE_SUPPORTS_WRITES
10 select INTEL_DESCRIPTOR_MODE_CAPABLE
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070011 select CACHE_MRC_SETTINGS
12 select CPU_INTEL_COMMON
13 select FSP_M_XIP
Ravi Sarawadib8224f42022-04-10 23:31:24 -070014 select IDT_IN_EVERY_STAGE
15 select INTEL_CAR_NEM
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070016 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
17 select IOAPIC
Ravi Sarawadib8224f42022-04-10 23:31:24 -070018 select MICROCODE_BLOB_UNDISCLOSED
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070019 select MRC_SETTINGS_PROTECT
Ravi Sarawadib8224f42022-04-10 23:31:24 -070020 select SOC_INTEL_COMMON
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070021 select SOC_INTEL_COMMON_BLOCK
Ravi Sarawadib8224f42022-04-10 23:31:24 -070022 select SOC_INTEL_COMMON_BLOCK_CAR
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070023 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Ravi Sarawadib8224f42022-04-10 23:31:24 -070024 select SOC_INTEL_COMMON_BLOCK_CPU
25 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -070026 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Ravi Sarawadib8224f42022-04-10 23:31:24 -070027 select SOC_INTEL_COMMON_BLOCK_SA
28 select SOC_INTEL_COMMON_PCH_BASE
29 select SOC_INTEL_COMMON_RESET
30 select SSE2
31 select SUPPORT_CPU_UCODE_IN_CBFS
32 select TSC_MONOTONIC_TIMER
33 select UDELAY_TSC
34
35config DCACHE_RAM_BASE
36 default 0xfef00000
37
38config DCACHE_RAM_SIZE
39 default 0xc0000
40 help
41 The size of the cache-as-ram region required during bootblock
42 and/or romstage.
43
44config DCACHE_BSP_STACK_SIZE
45 hex
46 default 0x80400
47 help
48 The amount of anticipated stack usage in CAR by bootblock and
49 other stages. In the case of FSP_USES_CB_STACK default value will be
50 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
51 (~1KiB).
52
53config FSP_TEMP_RAM_SIZE
54 hex
55 default 0x20000
56 help
57 The amount of anticipated heap usage in CAR by FSP.
58 Refer to Platform FSP integration guide document to know
59 the exact FSP requirement for Heap setup.
60
61config IFD_CHIPSET
62 string
63 default "mtl"
64
65config IED_REGION_SIZE
66 hex
67 default 0x400000
68
69config HEAP_SIZE
70 hex
71 default 0x10000
72
73config PCR_BASE_ADDRESS
74 hex
75 default 0xe0000000
76 help
77 This option allows you to select MMIO Base Address of sideband bus.
78
79config ECAM_MMCONF_BASE_ADDRESS
80 default 0xc0000000
81
82config CPU_BCLK_MHZ
83 int
84 default 100
85
86config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
87 int
88 default 120
89
90config CPU_XTAL_HZ
91 default 38400000
92
93config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
94 int
95 default 133
96
97config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
98 int
99 default 2
100
101config SOC_INTEL_I2C_DEV_MAX
102 int
103 default 6
104
105config SOC_INTEL_UART_DEV_MAX
106 int
107 default 3
108
Ravi Sarawadib8224f42022-04-10 23:31:24 -0700109config CONSOLE_UART_BASE_ADDRESS
110 hex
111 default 0xfe03e000
112 depends on INTEL_LPSS_UART_FOR_CONSOLE
113
114# Clock divider parameters for 115200 baud rate
Angel Pons054ff5e2022-06-26 10:19:53 +0200115# Baudrate = (UART source clock * M) /(N *16)
Ravi Sarawadib8224f42022-04-10 23:31:24 -0700116# MTL UART source clock: 120MHz
117config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
118 hex
119 default 0x25a
120
121config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
122 hex
123 default 0x7fff
124
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -0700125config VBOOT
126 select VBOOT_MUST_REQUEST_DISPLAY
127 select VBOOT_STARTS_IN_BOOTBLOCK
128 select VBOOT_VBNV_CMOS
129 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
130 select VBOOT_X86_SHA256_ACCELERATION
131
Subrata Banikfebd3d72022-05-30 13:59:25 +0530132# Default hash block size is 1KiB. Increasing it to 4KiB to improve
133# hashing time as well as read time.
134config VBOOT_HASH_BLOCK_SIZE
135 hex
136 default 0x1000
137
Ravi Sarawadib8224f42022-04-10 23:31:24 -0700138config CBFS_SIZE
139 hex
140 default 0x200000
141
142config PRERAM_CBMEM_CONSOLE_SIZE
143 hex
Subrata Banikea4f8c22022-05-30 13:56:13 +0530144 default 0x2000
Ravi Sarawadib8224f42022-04-10 23:31:24 -0700145
Ravi Sarawadi8069b5d2022-04-10 23:36:52 -0700146config FSP_HEADER_PATH
147 string "Location of FSP headers"
148 default "src/vendorcode/intel/fsp/fsp2_0/meteorlake/"
149
150config FSP_FD_PATH
151 string
152 depends on FSP_USE_REPO
153 default "3rdparty/fsp/MeteorLakeFspBinPkg/Fsp.fd"
154
155config SOC_INTEL_METEORLAKE_DEBUG_CONSENT
156 int "Debug Consent for MTL"
157 # USB DBC is more common for developers so make this default to 3 if
158 # SOC_INTEL_DEBUG_CONSENT=y
159 default 3 if SOC_INTEL_DEBUG_CONSENT
160 default 0
161 help
162 This is to control debug interface on SOC.
163 Setting non-zero value will allow to use DBC or DCI to debug SOC.
164 PlatformDebugConsent in FspmUpd.h has the details.
165
166 Desired platform debug type are
167 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
168 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
169 6:Enable (2-wire DCI OOB), 7:Manual
170
171config DATA_BUS_WIDTH
172 int
173 default 128
174
175config DIMMS_PER_CHANNEL
176 int
177 default 2
178
179config MRC_CHANNEL_WIDTH
180 int
181 default 16
182
Ravi Sarawadib8224f42022-04-10 23:31:24 -0700183endif