drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / mainboard / google / rex / Kconfig
blob73f28f335fb84357b1391cec5867d093f7baf97f
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_KANIX
71         def_bool n
72         select BOARD_GOOGLE_BASEBOARD_REX
73         select DRIVERS_GENERIC_ALC1015
74         select RT8168_GEN_ACPI_POWER_RESOURCE
75         select RT8168_GET_MAC_FROM_VPD
76         select RT8168_SET_LED_MODE
77         select SOC_INTEL_CSE_LITE_SKU
78         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
79         select SOC_INTEL_CSE_SEND_EOP_ASYNC
81 config BOARD_GOOGLE_MODEL_KARIS
82         def_bool n
83         select BOARD_GOOGLE_BASEBOARD_REX
84         select SOC_INTEL_CSE_LITE_SKU
85         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
86         select SOC_INTEL_CSE_SEND_EOP_ASYNC
88 config BOARD_GOOGLE_MODEL_OVIS
89         def_bool n
90         select BOARD_GOOGLE_BASEBOARD_OVIS
92 config BOARD_GOOGLE_MODEL_REX
93         def_bool n
94         select BOARD_GOOGLE_BASEBOARD_REX
95         select DRIVERS_GENERIC_MAX98357A
96         select DRIVERS_GENESYSLOGIC_GL9755
97         select DRIVERS_I2C_SX9324
98         select DRIVERS_INTEL_ISH
99         select DRIVERS_INTEL_SOUNDWIRE
100         select DRIVERS_NXP_UWB_SR1XX
101         select DRIVERS_SOUNDWIRE_CS42L42
102         select DRIVERS_SOUNDWIRE_MAX98363
104 config BOARD_GOOGLE_MODEL_REX_EC_ISH
105         def_bool n
106         select BOARD_GOOGLE_MODEL_REX
107         select SOC_INTEL_CSE_LITE_SKU
108         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
109         select SOC_INTEL_CSE_SEND_EOP_ASYNC
110         select SOC_INTEL_STORE_ISH_FW_VERSION
112 config BOARD_GOOGLE_MODEL_SCREEBO
113         def_bool n
114         select BOARD_GOOGLE_BASEBOARD_REX
115         select DRIVERS_GENERIC_ALC1015
116         select DRIVERS_GENESYSLOGIC_GL9750
117         select SOC_INTEL_CSE_LITE_SKU
118         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
119         select SOC_INTEL_CSE_SEND_EOP_ASYNC
121 config BOARD_GOOGLE_DEKU
122         select BOARD_GOOGLE_MODEL_DEKU
124 config BOARD_GOOGLE_DEKU4ES
125         select BOARD_GOOGLE_MODEL_DEKU
127 config BOARD_GOOGLE_KANIX
128         select BOARD_GOOGLE_MODEL_KANIX
130 config BOARD_GOOGLE_KARIS
131         select BOARD_GOOGLE_MODEL_KARIS
133 config BOARD_GOOGLE_KARIS4ES
134         select BOARD_GOOGLE_MODEL_KARIS
135         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
137 config BOARD_GOOGLE_OVIS
138         select BOARD_GOOGLE_MODEL_OVIS
140 config BOARD_GOOGLE_OVIS4ES
141         select BOARD_GOOGLE_MODEL_OVIS
142         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
144 config BOARD_GOOGLE_REX0
145         select BOARD_GOOGLE_MODEL_REX
146         select SOC_INTEL_CSE_LITE_SKU
147         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
148         select SOC_INTEL_CSE_SEND_EOP_ASYNC
150 config BOARD_GOOGLE_REX64
151         select BOARD_GOOGLE_MODEL_REX
152         select HAVE_X86_64_SUPPORT
153         select SOC_INTEL_CSE_LITE_SYNC_BY_PAYLOAD
154         select SOC_INTEL_CSE_SEND_EOP_BY_PAYLOAD
155         select USE_X86_64_SUPPORT
157 config BOARD_GOOGLE_REX_EC_ISH
158         select BOARD_GOOGLE_MODEL_REX_EC_ISH
160 config BOARD_GOOGLE_REX4ES
161         select BOARD_GOOGLE_MODEL_REX
162         select SOC_INTEL_CSE_LITE_SKU
163         select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
164         select SOC_INTEL_CSE_SEND_EOP_ASYNC
165         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
167 config BOARD_GOOGLE_REX4ES_EC_ISH
168         select BOARD_GOOGLE_MODEL_REX_EC_ISH
169         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
171 config BOARD_GOOGLE_SCREEBO
172         select BOARD_GOOGLE_MODEL_SCREEBO
174 config BOARD_GOOGLE_SCREEBO4ES
175         select BOARD_GOOGLE_MODEL_SCREEBO
176         select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
178 if BOARD_GOOGLE_REX_COMMON
180 config BASEBOARD_DIR
181         string
182         default "rex" if BOARD_GOOGLE_BASEBOARD_REX
183         default "ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
185 config CHROMEOS
186         select EC_GOOGLE_CHROMEEC_SWITCHES
187         select GBB_FLAG_FORCE_DEV_SWITCH_ON
188         select GBB_FLAG_FORCE_DEV_BOOT_USB
189         select GBB_FLAG_FORCE_MANUAL_RECOVERY
190         select HAS_RECOVERY_MRC_CACHE
192 config CHROMEOS_WIFI_SAR
193         bool "Enable SAR options for ChromeOS build"
194         depends on CHROMEOS
195         select DSAR_ENABLE
196         select GEO_SAR_ENABLE
197         select SAR_ENABLE
198         select USE_SAR
200 config DEVICETREE
201         default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree_pre_prod.cb" if SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
202         default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
204 config FMDFILE
205         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
206         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es.fmd" if CHROMEOS && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
207         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP
208         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
210 config MAINBOARD_DIR
211         default "google/rex"
213 config MAINBOARD_FAMILY
214         string
215         default "Google_Rex" if BOARD_GOOGLE_BASEBOARD_REX
216         default "Google_Ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
218 config MAINBOARD_PART_NUMBER
219         default "Rex" if BOARD_GOOGLE_REX0
220         default "Rex64" if BOARD_GOOGLE_REX64
221         default "Rex_Ec_Ish" if BOARD_GOOGLE_REX_EC_ISH
222         default "Rex4ES" if BOARD_GOOGLE_REX4ES
223         default "Rex4ES_Ec_Ish" if BOARD_GOOGLE_REX4ES_EC_ISH
224         default "Screebo" if BOARD_GOOGLE_SCREEBO
225         default "Screebo4ES" if BOARD_GOOGLE_SCREEBO4ES
226         default "Karis" if BOARD_GOOGLE_KARIS
227         default "Karis4ES" if BOARD_GOOGLE_KARIS4ES
228         default "Ovis" if BOARD_GOOGLE_OVIS
229         default "Ovis4ES" if BOARD_GOOGLE_OVIS4ES
230         default "Deku" if BOARD_GOOGLE_DEKU
231         default "Deku4ES" if BOARD_GOOGLE_DEKU4ES
232         default "Kanix" if BOARD_GOOGLE_KANIX
234 config VARIANT_DIR
235         string
236         default "rex0" if BOARD_GOOGLE_MODEL_REX
237         default "screebo" if BOARD_GOOGLE_MODEL_SCREEBO
238         default "karis" if BOARD_GOOGLE_MODEL_KARIS
239         default "ovis" if BOARD_GOOGLE_MODEL_OVIS
240         default "deku" if BOARD_GOOGLE_MODEL_DEKU
241         default "kanix" if BOARD_GOOGLE_MODEL_KANIX
243 config DIMM_SPD_SIZE
244         default 512
246 config MEMORY_SOLDERDOWN
247         def_bool n
248         select CHROMEOS_DRAM_PART_NUMBER_IN_CBI if CHROMEOS
249         select HAVE_SPD_IN_CBFS
251 config VBOOT
252         select VBOOT_LID_SWITCH if BOARD_GOOGLE_BASEBOARD_REX
254 config UART_FOR_CONSOLE
255         int
256         default 0
258 config OVERRIDE_DEVICETREE
259         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
261 config DRIVER_TPM_I2C_BUS
262         hex
263         default 0x4 if BOARD_GOOGLE_MODEL_REX || BOARD_GOOGLE_MODEL_SCREEBO || BOARD_GOOGLE_MODEL_OVIS || BOARD_GOOGLE_MODEL_KARIS || BOARD_GOOGLE_MODEL_DEKU || BOARD_GOOGLE_MODEL_KANIX
265 config DRIVER_TPM_I2C_ADDR
266         hex
267         default 0x50
269 config TPM_TIS_ACPI_INTERRUPT
270         int
271         default 35  # GPE0_DW1_03 (GPP_E03)
273 config USE_PM_ACPI_TIMER
274         default n
276 config HAVE_SLP_S0_GATE
277         def_bool n
279 endif # BOARD_GOOGLE_REX_COMMON