mb/google/brya/var/uldrenite: Generate RAM ID and SPD file
[coreboot2.git] / src / mainboard / google / dedede / Kconfig
blobd6d41368c8353ebb24aebb9c23678ddb7371e8c4
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_BASEBOARD_DEDEDE
4         def_bool n
5         select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
6         select DRIVERS_AUDIO_SOF
7         select DRIVERS_GENERIC_ALC1015
8         select DRIVERS_GENERIC_GPIO_KEYS
9         select DRIVERS_GENERIC_MAX98357A
10         select DRIVERS_I2C_CS42L42
11         select DRIVERS_I2C_GENERIC
12         select DRIVERS_I2C_GPIO_MUX
13         select DRIVERS_I2C_HID
14         select DRIVERS_I2C_RT5645
15         select DRIVERS_INTEL_DPTF
16         select DRIVERS_INTEL_MIPI_CAMERA
17         select DRIVERS_SPI_ACPI
18         select DRIVERS_USB_ACPI
19         select EC_GOOGLE_CHROMEEC
20         select EC_GOOGLE_CHROMEEC_BOARDID
21         select EC_GOOGLE_CHROMEEC_ESPI
22         select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
23         select EC_GOOGLE_CHROMEEC_SKUID
24         select FW_CONFIG
25         select FW_CONFIG_SOURCE_CHROMEEC_CBI
26         select GOOGLE_SMBIOS_MAINBOARD_VERSION
27         select HAVE_ACPI_RESUME
28         select HAVE_ACPI_TABLES
29         select HAVE_SPD_IN_CBFS if !BOARD_GOOGLE_DEDEDE
30         select INTEL_LPSS_UART_FOR_CONSOLE
31         select MAINBOARD_HAS_CHROMEOS
32         select MAINBOARD_HAS_TPM2
33         select SOC_INTEL_COMMON_BLOCK_IPU
34         select SOC_INTEL_CSE_LITE_SKU
35         select SOC_INTEL_JASPERLAKE
36         select SOC_INTEL_CRASHLOG
37         select SPI_FLASH_SMM
39 config BOARD_GOOGLE_AWASUKI
40         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
41         select BASEBOARD_DEDEDE_LAPTOP
42         select MAINBOARD_HAS_GOOGLE_STRAUSS_KEYBOARD
43         select SOC_INTEL_COMMON_BLOCK_IPU
44         select INTEL_GMA_HAVE_VBT
46 config BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
47         def_bool n
48         select BOARD_GOOGLE_BASEBOARD_DEDEDE
49         select CR50_USE_LONG_INTERRUPT_PULSES
50         select SPI_TPM
51         select TPM_GOOGLE_CR50
53 config BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
54         def_bool n
55         select BOARD_GOOGLE_BASEBOARD_DEDEDE
56         select MEMORY_MAPPED_TPM
58 config BOARD_GOOGLE_BEADRIX
59         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
60         select BASEBOARD_DEDEDE_LAPTOP
61         select DRIVERS_GENERIC_MAX98357A
62         select DRIVERS_I2C_SX9324
63         select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
64         select INTEL_GMA_HAVE_VBT
66 config BOARD_GOOGLE_BLIPPER
67         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
68         select BASEBOARD_DEDEDE_LAPTOP
69         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
70         select INTEL_GMA_HAVE_VBT
72 config BOARD_GOOGLE_BOTEN
73         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
74         select BASEBOARD_DEDEDE_LAPTOP
75         select DRIVERS_I2C_SX9324
76         select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
77         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
78         select INTEL_GMA_HAVE_VBT
80 config BOARD_GOOGLE_BOXY
81         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
82         select INTEL_GMA_HAVE_VBT
83         select RT8168_GEN_ACPI_POWER_RESOURCE
84         select RT8168_GET_MAC_FROM_VPD
85         select RT8168_SET_LED_MODE
87 config BOARD_GOOGLE_BUGZZY
88         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
89         select BASEBOARD_DEDEDE_LAPTOP
90         select DRIVERS_GENERIC_MAX98357A
91         select DRIVERS_I2C_DA7219
92         select DRIVERS_I2C_SX9360
93         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
94         select INTEL_GMA_HAVE_VBT
96 config BOARD_GOOGLE_CAPPY2
97         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
98         select BASEBOARD_DEDEDE_LAPTOP
100 config BOARD_GOOGLE_CORORI
101         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
102         select BASEBOARD_DEDEDE_LAPTOP
103         select DRIVERS_GENERIC_MAX98357A
105 config BOARD_GOOGLE_CRET
106         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
107         select BASEBOARD_DEDEDE_LAPTOP
108         select DRIVERS_GENERIC_MAX98357A
109         select DRIVERS_I2C_DA7219
110         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
111         select INTEL_GMA_HAVE_VBT
113 config BOARD_GOOGLE_DEDEDE
114         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
115         select BASEBOARD_DEDEDE_LAPTOP
116         select BOARD_ROMSIZE_KB_32768
118 config BOARD_GOOGLE_DEXI
119         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
120         select RT8168_GEN_ACPI_POWER_RESOURCE
121         select RT8168_GET_MAC_FROM_VPD
122         select RT8168_SET_LED_MODE
123         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
125 config BOARD_GOOGLE_DIBBI
126         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
127         select INTEL_GMA_HAVE_VBT
128         select RT8168_GEN_ACPI_POWER_RESOURCE
129         select RT8168_GET_MAC_FROM_VPD
130         select RT8168_SET_LED_MODE
132 config BOARD_GOOGLE_DITA
133         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
134         select RT8168_GEN_ACPI_POWER_RESOURCE
135         select RT8168_GET_MAC_FROM_VPD
136         select RT8168_SET_LED_MODE
137         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
139 config BOARD_GOOGLE_DRAWCIA
140         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
141         select BASEBOARD_DEDEDE_LAPTOP
142         select DRIVERS_GENERIC_MAX98357A
143         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
144         select DRIVERS_INTEL_MIPI_CAMERA
145         select INTEL_GMA_HAVE_VBT
146         select SOC_INTEL_COMMON_BLOCK_IPU
148 config BOARD_GOOGLE_DRIBLEE
149         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
150         select BASEBOARD_DEDEDE_LAPTOP
151         select DRIVERS_GENERIC_MAX98357A
153 config BOARD_GOOGLE_GALTIC
154         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
155         select BASEBOARD_DEDEDE_LAPTOP
156         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
157         select INTEL_GMA_HAVE_VBT
159 config BOARD_GOOGLE_GOOEY
160         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
161         select BASEBOARD_DEDEDE_LAPTOP
162         select DRIVERS_I2C_SX9324
163         select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
164         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
166 config BOARD_GOOGLE_HABOKI
167         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
168         select BASEBOARD_DEDEDE_LAPTOP
169         select DRIVERS_GENERIC_MAX98357A
170         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
171         select DRIVERS_INTEL_MIPI_CAMERA
172         select SOC_INTEL_COMMON_BLOCK_IPU
174 config BOARD_GOOGLE_KRACKO
175         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
176         select BASEBOARD_DEDEDE_LAPTOP
177         select DRIVERS_GENERIC_MAX98357A
178         select DRIVERS_I2C_SX9324
179         select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
180         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
181         select INTEL_GMA_HAVE_VBT
183 config BOARD_GOOGLE_LALALA
184         select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
185         select BASEBOARD_DEDEDE_LAPTOP
186         select DRIVERS_INTEL_MIPI_CAMERA
187         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
188         select SOC_INTEL_COMMON_BLOCK_IPU
190 config BOARD_GOOGLE_LANTIS
191         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
192         select BASEBOARD_DEDEDE_LAPTOP
193         select DRIVERS_GENERIC_MAX98357A
194         select INTEL_GMA_HAVE_VBT
196 config BOARD_GOOGLE_MADOO
197         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
198         select BASEBOARD_DEDEDE_LAPTOP
199         select DRIVERS_GENERIC_MAX98357A
200         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
201         select INTEL_GMA_HAVE_VBT
203 config BOARD_GOOGLE_MAGOLOR
204         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
205         select BASEBOARD_DEDEDE_LAPTOP
206         select DRIVERS_I2C_DA7219
207         select DRIVERS_INTEL_MIPI_CAMERA
208         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
209         select INTEL_GMA_HAVE_VBT
210         select SOC_INTEL_COMMON_BLOCK_IPU
212 config BOARD_GOOGLE_METAKNIGHT
213         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
214         select BASEBOARD_DEDEDE_LAPTOP
215         select INTEL_GMA_HAVE_VBT
217 config BOARD_GOOGLE_PIRIKA
218         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
219         select BASEBOARD_DEDEDE_LAPTOP
220         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
221         select INTEL_GMA_HAVE_VBT
223 config BOARD_GOOGLE_SASUKE
224         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
225         select BASEBOARD_DEDEDE_LAPTOP
226         select DRIVERS_GENERIC_MAX98357A
227         select DRIVERS_I2C_DA7219
228         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
229         select INTEL_GMA_HAVE_VBT
231 config BOARD_GOOGLE_SASUKETTE
232         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
233         select BASEBOARD_DEDEDE_LAPTOP
234         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
235         select INTEL_GMA_HAVE_VBT
237 config BOARD_GOOGLE_SHOTZO
238         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
240 config BOARD_GOOGLE_STORO
241         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
242         select BASEBOARD_DEDEDE_LAPTOP
243         select DRIVERS_I2C_SX9324
244         select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
245         select DRIVERS_INTEL_MIPI_CAMERA
246         select SOC_INTEL_COMMON_BLOCK_IPU
247         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
248         select INTEL_GMA_HAVE_VBT
250 config BOARD_GOOGLE_TARANZA
251         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
252         select RT8168_GEN_ACPI_POWER_RESOURCE
253         select RT8168_GET_MAC_FROM_VPD
254         select RT8168_SET_LED_MODE
255         select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
256         select INTEL_GMA_HAVE_VBT
258 config BOARD_GOOGLE_WADDLEDEE
259         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
260         select BASEBOARD_DEDEDE_LAPTOP
261         select BOARD_ROMSIZE_KB_32768
262         select INTEL_GMA_HAVE_VBT
264 config BOARD_GOOGLE_WADDLEDOO
265         select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
266         select BASEBOARD_DEDEDE_LAPTOP
267         select BOARD_ROMSIZE_KB_32768
268         select DRIVERS_GENERIC_MAX98357A
269         select DRIVERS_I2C_DA7219
270         select DRIVERS_INTEL_MIPI_CAMERA
271         select INTEL_GMA_HAVE_VBT
272         select SOC_INTEL_COMMON_BLOCK_IPU
274 if BOARD_GOOGLE_BASEBOARD_DEDEDE
276 config BASEBOARD_DEDEDE_LAPTOP
277         def_bool n
278         select SYSTEM_TYPE_LAPTOP
280 config CHROMEOS
281         select CHROMEOS_CSE_BOARD_RESET_OVERRIDE if BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
282         select CHROMEOS_DRAM_PART_NUMBER_IN_CBI
283         select EC_GOOGLE_CHROMEEC_SWITCHES
284         select GBB_FLAG_FORCE_DEV_SWITCH_ON
285         select GBB_FLAG_FORCE_DEV_BOOT_USB
286         select GBB_FLAG_FORCE_DEV_BOOT_ALTFW
287         select GBB_FLAG_FORCE_MANUAL_RECOVERY
288         select HAS_RECOVERY_MRC_CACHE
289         select VBOOT_EARLY_EC_SYNC
290         select VBOOT_LID_SWITCH
292 config CHROMEOS_WIFI_SAR
293         bool "Enable SAR options for ChromeOS build"
294         depends on CHROMEOS
295         select DSAR_ENABLE
296         select SAR_ENABLE
297         select USE_SAR
299 config DEVICETREE
300         default "variants/baseboard/devicetree.cb"
302 config DIMM_SPD_SIZE
303         default 512
305 config FMDFILE
306         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-16MiB.fmd" if CHROMEOS && BOARD_ROMSIZE_KB_16384
307         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-32MiB.fmd" if CHROMEOS && BOARD_ROMSIZE_KB_32768
309 config MAINBOARD_DIR
310         default "google/dedede"
312 config MAINBOARD_FAMILY
313         string
314         default "Google_Dedede" if BOARD_GOOGLE_DEDEDE
316 config MAINBOARD_PART_NUMBER
317         default "Beadrix" if BOARD_GOOGLE_BEADRIX
318         default "Blipper" if BOARD_GOOGLE_BLIPPER
319         default "Boten" if BOARD_GOOGLE_BOTEN
320         default "Boxy" if BOARD_GOOGLE_BOXY
321         default "Bugzzy" if BOARD_GOOGLE_BUGZZY
322         default "Cappy2" if BOARD_GOOGLE_CAPPY2
323         default "Corori" if BOARD_GOOGLE_CORORI
324         default "Cret" if BOARD_GOOGLE_CRET
325         default "Dedede" if BOARD_GOOGLE_DEDEDE
326         default "Dexi" if BOARD_GOOGLE_DEXI
327         default "Dibbi" if BOARD_GOOGLE_DIBBI
328         default "Dita" if BOARD_GOOGLE_DITA
329         default "Drawcia" if BOARD_GOOGLE_DRAWCIA
330         default "Driblee" if BOARD_GOOGLE_DRIBLEE
331         default "Galtic" if BOARD_GOOGLE_GALTIC
332         default "Gooey" if BOARD_GOOGLE_GOOEY
333         default "Haboki" if BOARD_GOOGLE_HABOKI
334         default "Kracko" if BOARD_GOOGLE_KRACKO
335         default "Lalala" if BOARD_GOOGLE_LALALA
336         default "Lantis" if BOARD_GOOGLE_LANTIS
337         default "Madoo" if BOARD_GOOGLE_MADOO
338         default "Magolor" if BOARD_GOOGLE_MAGOLOR
339         default "Metaknight" if BOARD_GOOGLE_METAKNIGHT
340         default "Pirika" if BOARD_GOOGLE_PIRIKA
341         default "Sasuke" if BOARD_GOOGLE_SASUKE
342         default "Sasukette" if BOARD_GOOGLE_SASUKETTE
343         default "Shotzo" if BOARD_GOOGLE_SHOTZO
344         default "Storo" if BOARD_GOOGLE_STORO
345         default "Taranza" if BOARD_GOOGLE_TARANZA
346         default "Waddledee" if BOARD_GOOGLE_WADDLEDEE
347         default "Waddledoo" if BOARD_GOOGLE_WADDLEDOO
348         default "Awasuki" if BOARD_GOOGLE_AWASUKI
350 config MAX_CPUS
351         int
352         default 4
354 config OVERRIDE_DEVICETREE
355         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" if !BOARD_GOOGLE_DEDEDE
357 config UART_FOR_CONSOLE
358         int
359         default 2
361 config VARIANT_DIR
362         default "beadrix" if BOARD_GOOGLE_BEADRIX
363         default "blipper" if BOARD_GOOGLE_BLIPPER
364         default "boten" if BOARD_GOOGLE_BOTEN
365         default "boxy" if BOARD_GOOGLE_BOXY
366         default "bugzzy" if BOARD_GOOGLE_BUGZZY
367         default "cappy2" if BOARD_GOOGLE_CAPPY2
368         default "corori" if BOARD_GOOGLE_CORORI
369         default "cret" if BOARD_GOOGLE_CRET
370         default "dedede" if BOARD_GOOGLE_DEDEDE
371         default "dexi" if BOARD_GOOGLE_DEXI
372         default "dibbi" if BOARD_GOOGLE_DIBBI
373         default "dita" if BOARD_GOOGLE_DITA
374         default "drawcia" if BOARD_GOOGLE_DRAWCIA
375         default "driblee" if BOARD_GOOGLE_DRIBLEE
376         default "galtic" if BOARD_GOOGLE_GALTIC
377         default "gooey" if BOARD_GOOGLE_GOOEY
378         default "haboki" if BOARD_GOOGLE_HABOKI
379         default "kracko" if BOARD_GOOGLE_KRACKO
380         default "lalala" if BOARD_GOOGLE_LALALA
381         default "lantis" if BOARD_GOOGLE_LANTIS
382         default "madoo" if BOARD_GOOGLE_MADOO
383         default "magolor" if BOARD_GOOGLE_MAGOLOR
384         default "metaknight" if BOARD_GOOGLE_METAKNIGHT
385         default "pirika" if BOARD_GOOGLE_PIRIKA
386         default "sasuke" if BOARD_GOOGLE_SASUKE
387         default "sasukette" if BOARD_GOOGLE_SASUKETTE
388         default "shotzo" if BOARD_GOOGLE_SHOTZO
389         default "storo" if BOARD_GOOGLE_STORO
390         default "taranza" if BOARD_GOOGLE_TARANZA
391         default "waddledee" if BOARD_GOOGLE_WADDLEDEE
392         default "waddledoo" if BOARD_GOOGLE_WADDLEDOO
393         default "awasuki" if BOARD_GOOGLE_AWASUKI
395 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE
397 if BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
399 config DRIVER_TPM_SPI_BUS
400         default 0x1
402 config TPM_TIS_ACPI_INTERRUPT
403         int
404         default 4  # GPE0_DW0_4 (GPP_B4)
406 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
408 if BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
410 config TPM_PIRQ
411         hex
412         default 0x24 # GPP_B4_IRQ
414 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2