blob: 07456795b5a2a4573c4798f85209492cdda09333 [file] [log] [blame]
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -07001config SOC_INTEL_APOLLOLAKE
2 bool
3 help
4 Intel Apollolake support
5
6if SOC_INTEL_APOLLOLAKE
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
Aaron Durbined35b7c2016-07-13 23:17:38 -050010 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070011 select ARCH_BOOTBLOCK_X86_32
12 select ARCH_RAMSTAGE_X86_32
13 select ARCH_ROMSTAGE_X86_32
14 select ARCH_VERSTAGE_X86_32
15 # CPU specific options
16 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
17 select IOAPIC
18 select SMP
19 select SSE2
20 select SUPPORT_CPU_UCODE_IN_CBFS
Saurabh Satija734aa872016-06-21 14:22:16 -070021 # Audio options
22 select ACPI_NHLT
23 select SOC_INTEL_COMMON_NHLT
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070024 # Misc options
Alexandru Gagniucdfc2b312015-10-06 17:16:41 -070025 select C_ENVIRONMENT_BOOTBLOCK
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070026 select COLLECT_TIMESTAMPS
Aaron Durbinc3ee3f62016-05-11 10:35:49 -050027 select COMMON_FADT
Duncan Lauried25dd992016-06-29 10:47:48 -070028 select GENERIC_GPIO_LIB
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070029 select HAVE_INTEL_FIRMWARE
Hannah Williamsd9c84ca2016-05-13 00:47:14 -070030 select HAVE_SMI_HANDLER
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070031 select MMCONF_SUPPORT
32 select MMCONF_SUPPORT_DEFAULT
Aaron Durbinf5ff8542016-05-05 10:38:03 -050033 select NO_FIXED_XIP_ROM_SIZE
Furquan Shaikh12a8aba2016-05-06 09:50:35 -070034 select NO_STAGE_CACHE
Furquan Shaikh94b18a12016-05-04 23:25:16 -070035 select NO_XIP_EARLY_STAGES
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070036 select PARALLEL_MP
37 select PCIEXP_ASPM
38 select PCIEXP_COMMON_CLOCK
39 select PCIEXP_CLK_PM
40 select PCIEXP_L1_SUB_STATE
Aaron Durbineebe0e02016-03-18 11:19:38 -050041 select POSTCAR_STAGE
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070042 select REG_SCRIPT
43 select RELOCATABLE_RAMSTAGE # Build fails if this is not selected
Hannah Williamsd9c84ca2016-05-13 00:47:14 -070044 select SMM_TSEG
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070045 select SOC_INTEL_COMMON
Hannah Williams0f61da82016-04-18 13:47:08 -070046 select SOC_INTEL_COMMON_ACPI
Duncan Laurieff8bce02016-06-27 10:57:13 -070047 select SOC_INTEL_COMMON_LPSS_I2C
48 select SOC_INTEL_COMMON_SMI
Alexandru Gagniuc0581a672016-02-24 15:08:23 -080049 select SPI_FLASH
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070050 select UDELAY_TSC
Andrey Petrov87fb1a62016-02-10 17:47:03 -080051 select TSC_CONSTANT_RATE
Hannah Williamsb13d4542016-03-14 17:38:51 -070052 select TSC_MONOTONIC_TIMER
53 select HAVE_MONOTONIC_TIMER
Andrey Petrov0d187912016-02-25 18:39:38 -080054 select PLATFORM_USES_FSP2_0
Zhao, Lijiand8d42c22016-03-14 14:19:22 -070055 select HAVE_HARD_RESET
56 select SOC_INTEL_COMMON
Andrey Petrov868679f2016-05-12 19:11:48 -070057 select SOC_INTEL_COMMON_GFX_OPREGION
58 select ADD_VBT_DATA_FILE
Zhao, Lijiand8d42c22016-03-14 14:19:22 -070059
Furquan Shaikh87b1bcc2016-07-22 12:57:51 -070060config CHROMEOS
61 select CHROMEOS_RAMOOPS_DYNAMIC
Furquan Shaikh87b1bcc2016-07-22 12:57:51 -070062 select EC_SOFTWARE_SYNC if EC_GOOGLE_CHROMEEC
63 select SEPARATE_VERSTAGE
64 select VBOOT_OPROM_MATTERS
Furquan Shaikh7c7b2912016-07-22 09:02:35 -070065 select VBOOT_SAVE_RECOVERY_REASON_ON_REBOOT
Furquan Shaikh87b1bcc2016-07-22 12:57:51 -070066 select VBOOT_STARTS_IN_BOOTBLOCK
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -070067 select VBOOT_VBNV_CMOS
68 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Furquan Shaikh87b1bcc2016-07-22 12:57:51 -070069 select VIRTUAL_DEV_SWITCH
70
Aaron Durbin80a3df22016-04-27 23:05:52 -050071config TPM_ON_FAST_SPI
72 bool
73 default n
74 select LPC_TPM
75 help
76 TPM part is conntected on Fast SPI interface, but the LPC MMIO
77 TPM transactions are decoded and serialized over the SPI interface.
78
Zhao, Lijiand8d42c22016-03-14 14:19:22 -070079config SOC_INTEL_COMMON_RESET
80 bool
Andrey Petrov9c0e1802016-06-23 08:26:00 -070081 default y
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -070082
Alexandru Gagniucdfc2b312015-10-06 17:16:41 -070083config MMCONF_BASE_ADDRESS
84 hex "PCI MMIO Base Address"
85 default 0xe0000000
86
87config IOSF_BASE_ADDRESS
88 hex "MMIO Base Address of sideband bus"
89 default 0xd0000000
90
91config DCACHE_RAM_BASE
92 hex "Base address of cache-as-RAM"
93 default 0xfef00000
94
95config DCACHE_RAM_SIZE
96 hex "Length in bytes of cache-as-RAM"
Andrey Petrov0e463072016-04-23 14:28:21 -070097 default 0x100000
Alexandru Gagniucdfc2b312015-10-06 17:16:41 -070098 help
99 The size of the cache-as-ram region required during bootblock
100 and/or romstage.
101
102config DCACHE_BSP_STACK_SIZE
103 hex
104 default 0x4000
105 help
106 The amount of anticipated stack usage in CAR by bootblock and
107 other stages.
108
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -0700109config CPU_ADDR_BITS
110 int
111 default 36
112
Duncan Laurieff8bce02016-06-27 10:57:13 -0700113config SOC_INTEL_COMMON_LPSS_I2C_CLOCK_MHZ
114 depends on SOC_INTEL_COMMON_LPSS_I2C
115 int
116 default 133
117
Andrey Petrov87fb1a62016-02-10 17:47:03 -0800118config CONSOLE_UART_BASE_ADDRESS
119 depends on CONSOLE_SERIAL
120 hex "MMIO base address for UART"
121 default 0xde000000
122
Aaron Durbin61810302016-02-24 18:49:07 -0600123config SOC_UART_DEBUG
124 bool "Enable SoC UART debug port selected by UART_FOR_CONSOLE."
125 default n
126 select CONSOLE_SERIAL
127 select BOOTBLOCK_CONSOLE
128 select DRIVERS_UART
129 select DRIVERS_UART_8250MEM_32
130 select NO_UART_ON_SUPERIO
131
Aaron Durbinada13ed2016-02-11 14:47:33 -0600132# 32KiB bootblock is all that is mapped in by the CSE at top of 4GiB.
133config C_ENV_BOOTBLOCK_SIZE
134 hex
135 default 0x8000
136
Andrey Petrov5672dcd2016-02-12 15:12:43 -0800137# This SoC does not map SPI flash like many previous SoC. Therefore we provide
138# a custom media driver that facilitates mapping
139config X86_TOP4G_BOOTMEDIA_MAP
140 bool
141 default n
Andrey Petrovb4831462016-02-25 17:42:25 -0800142
143config ROMSTAGE_ADDR
144 hex
Andrey Petrov0e463072016-04-23 14:28:21 -0700145 default 0xfef3e000
Andrey Petrovb4831462016-02-25 17:42:25 -0800146 help
147 The base address (in CAR) where romstage should be linked
148
Aaron Durbinbef75e72016-05-26 11:00:44 -0500149config VERSTAGE_ADDR
150 hex
151 default 0xfef60000
152 help
153 The base address (in CAR) where verstage should be linked
154
Hannah Williamsb13d4542016-03-14 17:38:51 -0700155config CACHE_MRC_SETTINGS
156 bool
157 default y
158
Andrey Petrov79091db72016-05-17 00:03:27 -0700159config FSP_M_ADDR
160 hex
161 default 0xfef60000
162 help
163 The address FSP-M will be relocated to during build time
164
Aaron Durbin9f444c32016-05-20 10:48:44 -0500165config NEED_LBP2
166 bool "Write contents for logical boot partition 2."
167 default n
168 help
169 Write the contents from a file into the logical boot partition 2
170 region defined by LBP2_FMAP_NAME.
171
172config LBP2_FMAP_NAME
173 string "Name of FMAP region to put logical boot partition 2"
174 depends on NEED_LBP2
175 default "SIGN_CSE"
176 help
177 Name of FMAP region to write logical boot partition 2 data.
178
179config LBP2_FILE_NAME
180 string "Path of file to write to logical boot partition 2 region"
181 depends on NEED_LBP2
182 default "3rdparty/blobs/mainboard/$(CONFIG_MAINBOARD_DIR)/lbp2.bin"
183 help
184 Name of file to store in the logical boot partition 2 region.
185
Furquan Shaikh7043bf32016-05-28 12:57:05 -0700186config NEED_IFWI
187 bool "Write content into IFWI region"
188 default n
189 help
190 Write the content from a file into IFWI region defined by
191 IFWI_FMAP_NAME.
192
193config IFWI_FMAP_NAME
194 string "Name of FMAP region to pull IFWI into"
195 depends on NEED_IFWI
196 default "IFWI"
197 help
198 Name of FMAP region to write IFWI.
199
200config IFWI_FILE_NAME
201 string "Path of file to write to IFWI region"
202 depends on NEED_IFWI
203 default "3rdparty/blobs/mainboard/$(CONFIG_MAINBOARD_DIR)/ifwi.bin"
204 help
205 Name of file to store in the IFWI region.
206
Saurabh Satija734aa872016-06-21 14:22:16 -0700207config NHLT_DMIC_2CH_16B
208 bool
209 depends on ACPI_NHLT
210 default n
211 help
212 Include DSP firmware settings for 2 channel 16B DMIC array.
213
214config NHLT_MAX98357
215 bool
216 depends on ACPI_NHLT
217 default n
218 help
219 Include DSP firmware settings for headset codec.
220
221config NHLT_DA7219
222 bool
223 depends on ACPI_NHLT
224 default n
225 help
226 Include DSP firmware settings for headset codec.
227
Alexandru Gagniuc7e86cd42015-10-06 10:33:49 -0700228endif