mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / rex / Kconfig
blobc2777253a188099228b3d7556abb61d68fe68205
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_REX_COMMON
4         def_bool n
5         select BOARD_ROMSIZE_KB_32768
6         select DRIVERS_GFX_GENERIC
7         select DRIVERS_I2C_GENERIC
8         select DRIVERS_I2C_HID
9         select DRIVERS_INTEL_DPTF
10         select DRIVERS_INTEL_MIPI_SUPPORTS_PRE_PRODUCTION_SOC if SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
11         select DRIVERS_INTEL_USB4_RETIMER
12         select DRIVERS_WIFI_GENERIC
13         select DRIVERS_INTEL_MIPI_CAMERA
14         select DRIVERS_SPI_ACPI
15         select EC_GOOGLE_CHROMEEC
16         select EC_GOOGLE_CHROMEEC_BOARDID
17         select EC_GOOGLE_CHROMEEC_ESPI
18         select EC_GOOGLE_CHROMEEC_SKUID
19         select FW_CONFIG
20         select FW_CONFIG_SOURCE_CHROMEEC_CBI
21         select GOOGLE_SMBIOS_MAINBOARD_VERSION
22         select HAVE_ACPI_TABLES
23         select I2C_TPM
24         select INTEL_LPSS_UART_FOR_CONSOLE
25         select MAINBOARD_DISABLE_STAGE_CACHE
26         select MAINBOARD_HAS_TPM2
27         select MB_COMPRESS_RAMSTAGE_LZ4
28         select PMC_IPC_ACPI_INTERFACE
29         select SOC_INTEL_COMMON_BLOCK_VARIANT_POWER_LIMIT
31 config BOARD_GOOGLE_BASEBOARD_OVIS
32         def_bool n
33         select BOARD_GOOGLE_REX_COMMON
34         select DRIVERS_INTEL_PMC
35         select ENABLE_TCSS_DISPLAY_DETECTION if RUN_FSP_GOP
36         select HAVE_SLP_S0_GATE
37         select MAINBOARD_HAS_CHROMEOS
38         select MEMORY_SOLDERDOWN
39         select RT8168_GEN_ACPI_POWER_RESOURCE
40         select RT8168_GET_MAC_FROM_VPD
41         select RT8168_SET_LED_MODE
42         select SOC_INTEL_CSE_LITE_SKU
43         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
44         select SOC_INTEL_CSE_SEND_EOP_ASYNC
45         select SOC_INTEL_IOE_DIE_SUPPORT
46         select SOC_INTEL_METEORLAKE_U_H
47         select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
48         select TPM_GOOGLE_TI50
50 config BOARD_GOOGLE_BASEBOARD_REX
51         def_bool n
52         select BOARD_GOOGLE_REX_COMMON
53         select CHROMEOS_WIFI_SAR if CHROMEOS
54         select DRIVERS_INTEL_PMC
55         select DRIVERS_GENERIC_GPIO_KEYS
56         select DRIVERS_WWAN_FM350GL
57         select HAVE_SLP_S0_GATE
58         select MAINBOARD_HAS_CHROMEOS
59         select MEMORY_SOLDERDOWN
60         select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
61         select SOC_INTEL_IOE_DIE_SUPPORT
62         select SOC_INTEL_METEORLAKE_U_H
63         select SYSTEM_TYPE_LAPTOP
64         select TPM_GOOGLE_TI50
66 config BOARD_GOOGLE_MODEL_DEKU
67         def_bool n
68         select BOARD_GOOGLE_BASEBOARD_OVIS
70 config BOARD_GOOGLE_MODEL_KARIS
71         def_bool n
72         select BOARD_GOOGLE_BASEBOARD_REX
73         select SOC_INTEL_CSE_LITE_SKU
74         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
75         select SOC_INTEL_CSE_SEND_EOP_ASYNC
77 config BOARD_GOOGLE_MODEL_OVIS
78         def_bool n
79         select BOARD_GOOGLE_BASEBOARD_OVIS
81 config BOARD_GOOGLE_MODEL_REX
82         def_bool n
83         select BOARD_GOOGLE_BASEBOARD_REX
84         select DRIVERS_GENERIC_MAX98357A
85         select DRIVERS_GENESYSLOGIC_GL9755
86         select DRIVERS_I2C_SX9324
87         select DRIVERS_INTEL_ISH
88         select DRIVERS_INTEL_SOUNDWIRE
89         select DRIVERS_NXP_UWB_SR1XX
90         select DRIVERS_SOUNDWIRE_CS42L42
91         select DRIVERS_SOUNDWIRE_MAX98363
93 config BOARD_GOOGLE_MODEL_REX_EC_ISH
94         def_bool n
95         select BOARD_GOOGLE_MODEL_REX
96         select SOC_INTEL_CSE_LITE_SKU
97         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
98         select SOC_INTEL_CSE_SEND_EOP_ASYNC
99         select SOC_INTEL_STORE_ISH_FW_VERSION
101 config BOARD_GOOGLE_MODEL_SCREEBO
102         def_bool n
103         select BOARD_GOOGLE_BASEBOARD_REX
104         select DRIVERS_GENERIC_ALC1015
105         select DRIVERS_GENESYSLOGIC_GL9750
106         select SOC_INTEL_CSE_LITE_SKU
107         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
108         select SOC_INTEL_CSE_SEND_EOP_ASYNC
110 config BOARD_GOOGLE_DEKU
111         select BOARD_GOOGLE_MODEL_DEKU
113 config BOARD_GOOGLE_DEKU4ES
114         select BOARD_GOOGLE_MODEL_DEKU
116 config BOARD_GOOGLE_KARIS
117         select BOARD_GOOGLE_MODEL_KARIS
119 config BOARD_GOOGLE_KARIS4ES
120         select BOARD_GOOGLE_MODEL_KARIS
121         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
123 config BOARD_GOOGLE_OVIS
124         select BOARD_GOOGLE_MODEL_OVIS
126 config BOARD_GOOGLE_OVIS4ES
127         select BOARD_GOOGLE_MODEL_OVIS
128         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
130 config BOARD_GOOGLE_REX0
131         select BOARD_GOOGLE_MODEL_REX
132         select SOC_INTEL_CSE_LITE_SKU
133         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
134         select SOC_INTEL_CSE_SEND_EOP_ASYNC
136 config BOARD_GOOGLE_REX64
137         select BOARD_GOOGLE_MODEL_REX
138         select HAVE_X86_64_SUPPORT
139         select SOC_INTEL_CSE_LITE_SYNC_BY_PAYLOAD
140         select SOC_INTEL_CSE_SEND_EOP_BY_PAYLOAD
141         select USE_X86_64_SUPPORT
143 config BOARD_GOOGLE_REX_EC_ISH
144         select BOARD_GOOGLE_MODEL_REX_EC_ISH
146 config BOARD_GOOGLE_REX4ES
147         select BOARD_GOOGLE_MODEL_REX
148         select SOC_INTEL_CSE_LITE_SKU
149         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
150         select SOC_INTEL_CSE_SEND_EOP_ASYNC
151         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
153 config BOARD_GOOGLE_REX4ES_EC_ISH
154         select BOARD_GOOGLE_MODEL_REX_EC_ISH
155         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
157 config BOARD_GOOGLE_SCREEBO
158         select BOARD_GOOGLE_MODEL_SCREEBO
160 config BOARD_GOOGLE_SCREEBO4ES
161         select BOARD_GOOGLE_MODEL_SCREEBO
162         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
164 if BOARD_GOOGLE_REX_COMMON
166 config BASEBOARD_DIR
167         string
168         default "rex" if BOARD_GOOGLE_BASEBOARD_REX
169         default "ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
171 config CHROMEOS
172         select EC_GOOGLE_CHROMEEC_SWITCHES
173         select GBB_FLAG_FORCE_DEV_SWITCH_ON
174         select GBB_FLAG_FORCE_DEV_BOOT_USB
175         select GBB_FLAG_FORCE_MANUAL_RECOVERY
176         select HAS_RECOVERY_MRC_CACHE
178 config CHROMEOS_WIFI_SAR
179         bool "Enable SAR options for ChromeOS build"
180         depends on CHROMEOS
181         select DSAR_ENABLE
182         select GEO_SAR_ENABLE
183         select SAR_ENABLE
184         select USE_SAR
186 config DEVICETREE
187         default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree_pre_prod.cb" if SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
188         default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
190 config FMDFILE
191         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
192         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es.fmd" if CHROMEOS && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
193         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP
194         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
196 config MAINBOARD_DIR
197         default "google/rex"
199 config MAINBOARD_FAMILY
200         string
201         default "Google_Rex" if BOARD_GOOGLE_BASEBOARD_REX
202         default "Google_Ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
204 config MAINBOARD_PART_NUMBER
205         default "Rex" if BOARD_GOOGLE_REX0
206         default "Rex64" if BOARD_GOOGLE_REX64
207         default "Rex_Ec_Ish" if BOARD_GOOGLE_REX_EC_ISH
208         default "Rex4ES" if BOARD_GOOGLE_REX4ES
209         default "Rex4ES_Ec_Ish" if BOARD_GOOGLE_REX4ES_EC_ISH
210         default "Screebo" if BOARD_GOOGLE_SCREEBO
211         default "Screebo4ES" if BOARD_GOOGLE_SCREEBO4ES
212         default "Karis" if BOARD_GOOGLE_KARIS
213         default "Karis4ES" if BOARD_GOOGLE_KARIS4ES
214         default "Ovis" if BOARD_GOOGLE_OVIS
215         default "Ovis4ES" if BOARD_GOOGLE_OVIS4ES
216         default "Deku" if BOARD_GOOGLE_DEKU
217         default "Deku4ES" if BOARD_GOOGLE_DEKU4ES
219 config VARIANT_DIR
220         string
221         default "rex0" if BOARD_GOOGLE_MODEL_REX
222         default "screebo" if BOARD_GOOGLE_MODEL_SCREEBO
223         default "karis" if BOARD_GOOGLE_MODEL_KARIS
224         default "ovis" if BOARD_GOOGLE_MODEL_OVIS
225         default "deku" if BOARD_GOOGLE_MODEL_DEKU
227 config DIMM_SPD_SIZE
228         default 512
230 config MEMORY_SOLDERDOWN
231         def_bool n
232         select CHROMEOS_DRAM_PART_NUMBER_IN_CBI if CHROMEOS
233         select HAVE_SPD_IN_CBFS
235 config VBOOT
236         select VBOOT_LID_SWITCH if BOARD_GOOGLE_BASEBOARD_REX
238 config UART_FOR_CONSOLE
239         int
240         default 0
242 config OVERRIDE_DEVICETREE
243         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
245 config DRIVER_TPM_I2C_BUS
246         hex
247         default 0x4 if BOARD_GOOGLE_MODEL_REX || BOARD_GOOGLE_MODEL_SCREEBO || BOARD_GOOGLE_MODEL_OVIS || BOARD_GOOGLE_MODEL_KARIS || BOARD_GOOGLE_MODEL_DEKU
249 config DRIVER_TPM_I2C_ADDR
250         hex
251         default 0x50
253 config TPM_TIS_ACPI_INTERRUPT
254         int
255         default 35  # GPE0_DW1_03 (GPP_E03)
257 config USE_PM_ACPI_TIMER
258         default n
260 config HAVE_SLP_S0_GATE
261         def_bool n
263 endif # BOARD_GOOGLE_REX_COMMON