mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / hatch / Kconfig
blob493db33902052e50b9d635617ea13a61a3509637
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_BASEBOARD_HATCH
4         def_bool n
5         select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
6         select DRIVERS_AUDIO_SOF
7         select DRIVERS_GENERIC_GPIO_KEYS
8         select DRIVERS_GENERIC_MAX98357A
9         select DRIVERS_I2C_DA7219
10         select DRIVERS_I2C_GENERIC
11         select DRIVERS_I2C_HID
12         select DRIVERS_I2C_SX9310
13         select DRIVERS_SPI_ACPI
14         select DRIVERS_USB_ACPI
15         select EC_GOOGLE_CHROMEEC
16         select EC_GOOGLE_CHROMEEC_BOARDID
17         select EC_GOOGLE_CHROMEEC_ESPI
18         select EC_GOOGLE_CHROMEEC_I2C_TUNNEL
19         select EC_GOOGLE_CHROMEEC_SKUID
20         select GOOGLE_SMBIOS_MAINBOARD_VERSION
21         select HAVE_ACPI_RESUME
22         select HAVE_ACPI_TABLES
23         select HAVE_SPD_IN_CBFS
24         select INTEL_LPSS_UART_FOR_CONSOLE
25         select MAINBOARD_HAS_CHROMEOS
26         select MAINBOARD_HAS_TPM2
27         select MB_HAS_ACTIVE_HIGH_SD_PWR_ENABLE
28         select SOC_INTEL_COMETLAKE_1
29         select SPI_TPM
30         select SYSTEM_TYPE_LAPTOP
31         select TPM_GOOGLE_CR50
33 config BOARD_GOOGLE_AKEMI
34         select BOARD_GOOGLE_BASEBOARD_HATCH
35         select INTEL_GMA_HAVE_VBT
37 config BOARD_GOOGLE_DRATINI
38         select BOARD_GOOGLE_BASEBOARD_HATCH
39         select INTEL_GMA_HAVE_VBT
41 config BOARD_GOOGLE_HATCH
42         select BOARD_GOOGLE_BASEBOARD_HATCH
43         select BOARD_ROMSIZE_KB_32768
44         select INTEL_GMA_HAVE_VBT
46 config BOARD_GOOGLE_HELIOS
47         select BOARD_GOOGLE_BASEBOARD_HATCH
48         select GOOGLE_DSM_CALIB if VPD
49         select DRIVERS_I2C_RT1011
50         select INTEL_GMA_HAVE_VBT
52 config BOARD_GOOGLE_HELIOS_DISKSWAP
53         select BOARD_GOOGLE_BASEBOARD_HATCH
54         select GOOGLE_DSM_CALIB if VPD
55         select DRIVERS_I2C_RT1011
56         select INTEL_GMA_HAVE_VBT
58 config BOARD_GOOGLE_JINLON
59         select BOARD_GOOGLE_BASEBOARD_HATCH
60         select DRIVERS_GFX_GENERIC
61         select INTEL_GMA_HAVE_VBT
63 config BOARD_GOOGLE_KINDRED
64         select BOARD_GOOGLE_BASEBOARD_HATCH
65         select INTEL_GMA_HAVE_VBT
66         select SOC_INTEL_COMMON_MMC_OVERRIDE
68 config BOARD_GOOGLE_KOHAKU
69         select BOARD_GOOGLE_BASEBOARD_HATCH
70         select INTEL_GMA_HAVE_VBT
72 config BOARD_GOOGLE_MUSHU
73         select BOARD_GOOGLE_BASEBOARD_HATCH
74         select INTEL_GMA_HAVE_VBT
76 config BOARD_GOOGLE_NIGHTFURY
77         select BOARD_GOOGLE_BASEBOARD_HATCH
78         select GOOGLE_DSM_CALIB if VPD
79         select DRIVERS_I2C_MAX98390
80         select INTEL_GMA_HAVE_VBT
82 config BOARD_GOOGLE_PALKIA
83         select BOARD_GOOGLE_BASEBOARD_HATCH
84         select GOOGLE_DSM_CALIB if VPD
85         select DRIVERS_I2C_RT1011
87 if BOARD_GOOGLE_BASEBOARD_HATCH
89 config DISABLE_HECI1_AT_PRE_BOOT
90         default y
92 config CHROMEOS
93         select CHROMEOS_DRAM_PART_NUMBER_IN_CBI
94         select EC_GOOGLE_CHROMEEC_SWITCHES
95         select GBB_FLAG_FORCE_DEV_BOOT_ALTFW
96         select GBB_FLAG_FORCE_DEV_BOOT_USB
97         select GBB_FLAG_FORCE_DEV_SWITCH_ON
98         select GBB_FLAG_FORCE_MANUAL_RECOVERY
99         select HAS_RECOVERY_MRC_CACHE
100         select VBOOT_LID_SWITCH
102 config CHROMEOS_WIFI_SAR
103         bool "Enable SAR options for ChromeOS build"
104         depends on CHROMEOS
105         select DSAR_ENABLE
106         select GEO_SAR_ENABLE
107         select SAR_ENABLE
108         select USE_SAR
110 config DEVICETREE
111         default "variants/baseboard/devicetree.cb"
113 config DIMM_MAX
114         default 2
116 config DRIVER_TPM_SPI_BUS
117         default 0x1
119 config UART_FOR_CONSOLE
120         default 0
122 config FMDFILE
123         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-16MiB.fmd" if BOARD_ROMSIZE_KB_16384 && CHROMEOS
124         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-32MiB.fmd" if BOARD_ROMSIZE_KB_32768 && CHROMEOS
126 config MAINBOARD_DIR
127         default "google/hatch"
129 config MAINBOARD_FAMILY
130         string
131         default "Google_Hatch"
133 config MAINBOARD_PART_NUMBER
134         default "Akemi" if BOARD_GOOGLE_AKEMI
135         default "Dratini" if BOARD_GOOGLE_DRATINI
136         default "Hatch" if BOARD_GOOGLE_HATCH
137         default "Helios" if BOARD_GOOGLE_HELIOS
138         default "Helios_Diskswap" if BOARD_GOOGLE_HELIOS_DISKSWAP
139         default "Jinlon" if BOARD_GOOGLE_JINLON
140         default "Kindred" if BOARD_GOOGLE_KINDRED
141         default "Kohaku" if BOARD_GOOGLE_KOHAKU
142         default "Mushu" if BOARD_GOOGLE_MUSHU
143         default "Nightfury" if BOARD_GOOGLE_NIGHTFURY
144         default "Palkia" if BOARD_GOOGLE_PALKIA
146 config OVERRIDE_DEVICETREE
147         default "variants/helios_diskswap/overridetree.cb" if BOARD_GOOGLE_HELIOS_DISKSWAP
148         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
150 config TPM_TIS_ACPI_INTERRUPT
151         int
152         default 53 # GPE0_DW1_21 (GPP_C21)
154 config VARIANT_DIR
155         default "akemi" if BOARD_GOOGLE_AKEMI
156         default "dratini" if BOARD_GOOGLE_DRATINI
157         default "hatch" if BOARD_GOOGLE_HATCH
158         default "helios" if BOARD_GOOGLE_HELIOS
159         default "helios" if BOARD_GOOGLE_HELIOS_DISKSWAP
160         default "jinlon" if BOARD_GOOGLE_JINLON
161         default "kindred" if BOARD_GOOGLE_KINDRED
162         default "kohaku" if BOARD_GOOGLE_KOHAKU
163         default "mushu" if BOARD_GOOGLE_MUSHU
164         default "nightfury" if BOARD_GOOGLE_NIGHTFURY
165         default "palkia" if BOARD_GOOGLE_PALKIA
167 config VBOOT
168         select HAS_RECOVERY_MRC_CACHE
169         select VBOOT_EARLY_EC_SYNC
171 config USE_PM_ACPI_TIMER
172         default n
174 endif # BOARD_GOOGLE_BASEBOARD_HATCH