1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_TREMBYLE
6 config BOARD_GOOGLE_BASEBOARD_DALBOZ
9 if BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ
11 config IGNORE_IASL_MISSING_DEPENDENCY
14 config BOARD_SPECIFIC_OPTIONS
16 select SOC_AMD_COMMON_BLOCK_USE_ESPI
17 select SOC_AMD_PICASSO
18 select SOC_AMD_COMMON_BLOCK_GRAPHICS_ATIF
19 select BOARD_ROMSIZE_KB_16384
20 select DRIVERS_AMD_I2S_MACHINE_DEV
21 select DISABLE_SPI_FLASH_ROM_SHARING
22 select DRIVERS_GENERIC_GPIO_KEYS
23 select DRIVERS_GENERIC_ALC1015
24 select DRIVERS_I2C_GENERIC
25 select DRIVERS_I2C_HID
26 select DRIVERS_I2C_SX9324
27 select EC_GOOGLE_CHROMEEC
28 select EC_GOOGLE_CHROMEEC_AUDIO_CODEC
29 select EC_GOOGLE_CHROMEEC_BOARDID
30 select EC_GOOGLE_CHROMEEC_ESPI
31 select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
32 select EC_GOOGLE_CHROMEEC_I2C_TUNNEL
33 select EC_GOOGLE_CHROMEEC_SKUID
35 select ELOG_BOOT_COUNT
38 select FW_CONFIG_SOURCE_CHROMEEC_CBI
40 select GOOGLE_SMBIOS_MAINBOARD_VERSION
41 select MAINBOARD_HAS_CHROMEOS
42 select AMD_SOC_CONSOLE_UART
43 select MAINBOARD_HAS_I2C_TPM_CR50
44 select MAINBOARD_HAS_TPM2
47 select PCIEXP_COMMON_CLOCK
48 select PCIEXP_L1_SUB_STATE
49 select HAVE_EM100_SUPPORT
50 select SYSTEM_TYPE_LAPTOP
51 select DRIVERS_GENERIC_MAX98357A
52 select HAVE_ACPI_RESUME
53 select DRIVERS_USB_ACPI
54 select DRIVERS_UART_ACPI
55 select DRIVERS_GENERIC_BAYHUB_LV2
57 config ELOG_BOOT_COUNT_CMOS_OFFSET
61 # FMDFILE is set here so that coreboot build picks up this flash map layout
62 # even when CHROMEOS is not selected when building upstream.
64 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
70 default "ezkinil" if BOARD_GOOGLE_EZKINIL
71 default "morphius" if BOARD_GOOGLE_MORPHIUS
72 default "trembyle" if BOARD_GOOGLE_TREMBYLE
73 default "dalboz" if BOARD_GOOGLE_DALBOZ
74 default "berknip" if BOARD_GOOGLE_BERKNIP
75 default "vilboz" if BOARD_GOOGLE_VILBOZ
76 default "woomax" if BOARD_GOOGLE_WOOMAX
77 default "dirinboz" if BOARD_GOOGLE_DIRINBOZ
78 default "shuboz" if BOARD_GOOGLE_SHUBOZ
79 default "gumboz" if BOARD_GOOGLE_GUMBOZ
81 config MAINBOARD_PART_NUMBER
82 default "Ezkinil" if BOARD_GOOGLE_EZKINIL
83 default "Morphius" if BOARD_GOOGLE_MORPHIUS
84 default "Trembyle" if BOARD_GOOGLE_TREMBYLE
85 default "Dalboz" if BOARD_GOOGLE_DALBOZ
86 default "Berknip" if BOARD_GOOGLE_BERKNIP
87 default "Vilboz" if BOARD_GOOGLE_VILBOZ
88 default "Woomax" if BOARD_GOOGLE_WOOMAX
89 default "Dirinboz" if BOARD_GOOGLE_DIRINBOZ
90 default "Shuboz" if BOARD_GOOGLE_SHUBOZ
91 default "Gumboz" if BOARD_GOOGLE_GUMBOZ
94 default "variants/baseboard/devicetree_trembyle.cb" if BOARD_GOOGLE_BASEBOARD_TREMBYLE
95 default "variants/baseboard/devicetree_dalboz.cb" if BOARD_GOOGLE_BASEBOARD_DALBOZ
97 config OVERRIDE_DEVICETREE
98 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
100 config MAINBOARD_FAMILY
102 default "Google_Zork"
104 config ONBOARD_VGA_IS_PRIMARY
109 default y if USE_AMD_BLOBS
112 select EC_GOOGLE_CHROMEEC_SWITCHES
113 select VBOOT_LID_SWITCH
114 select VBOOT_STARTS_BEFORE_BOOTBLOCK
116 config VBOOT_VBNV_OFFSET
121 # Use default libpayload config
122 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
124 config AMD_FWM_POSITION_INDEX
128 config DRIVER_TPM_I2C_BUS
132 config DRIVER_TPM_I2C_ADDR
136 config PICASSO_FW_A_POSITION
139 depends on VBOOT_SLOTS_RW_AB
141 Location of the AMD firmware in the RW_A region. This is the
142 start of the RW-A region + 64 bytes for the cbfs header.
144 config PICASSO_FW_B_POSITION
147 depends on VBOOT_SLOTS_RW_AB
149 Location of the AMD firmware in the RW_B region. This is the
150 start of the RW-A region + 64 bytes for the cbfs header.
152 config VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
154 default y if BOARD_GOOGLE_TREMBYLE
155 default y if BOARD_GOOGLE_EZKINIL
156 default y if BOARD_GOOGLE_MORPHIUS
157 default y if BOARD_GOOGLE_BERKNIP
158 default y if BOARD_GOOGLE_DALBOZ
161 Whether this variant supports pre-v3 version of schematics.
162 Eventually, when a variant moves to a point where it no
163 longer has to support pre-v3 schematics, `default y` entry
164 for it can be dropped.
166 config VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
168 default y if BOARD_GOOGLE_TREMBYLE
169 default y if BOARD_GOOGLE_EZKINIL
170 default y if BOARD_GOOGLE_MORPHIUS
171 default y if BOARD_GOOGLE_BERKNIP
172 default y if BOARD_GOOGLE_DALBOZ
173 default y if BOARD_GOOGLE_WOOMAX
174 default y if BOARD_GOOGLE_VILBOZ
175 default y if BOARD_GOOGLE_DIRINBOZ
178 config VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS
180 depends on VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
181 default 4 if BOARD_GOOGLE_TREMBYLE
182 default 3 if BOARD_GOOGLE_EZKINIL
183 default 4 if BOARD_GOOGLE_MORPHIUS
184 default 3 if BOARD_GOOGLE_BERKNIP
185 default 3 if BOARD_GOOGLE_DALBOZ
186 default 1 if BOARD_GOOGLE_WOOMAX
187 default 2 if BOARD_GOOGLE_VILBOZ
188 default 2 if BOARD_GOOGLE_DIRINBOZ
191 Minimum board version where the variant starts supporting
192 v3.6+ version of reference schematics.
194 config VARIANT_MIN_BOARD_ID_V3_SCHEMATICS
196 depends on VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
197 default 4 if BOARD_GOOGLE_TREMBYLE
198 default 3 if BOARD_GOOGLE_EZKINIL
199 default 3 if BOARD_GOOGLE_MORPHIUS
200 default 2 if BOARD_GOOGLE_BERKNIP
201 default 3 if BOARD_GOOGLE_DALBOZ
204 Minimum board version where the variant starts supporting
205 v3 version of reference schematics.
207 config VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH
209 default y if VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
210 default y if BOARD_GOOGLE_BERKNIP
211 default y if BOARD_GOOGLE_VILBOZ
212 default y if BOARD_GOOGLE_WOOMAX
215 Whether this variant supports active high power enable for
216 WiFi. For pre-v3 schematics, this is always true. There are
217 some variants which used v3 schematics, but did not pick up
218 the change for active low WiFi power enable. Those variants
219 will have to set this config to true. Eventually, when a
220 variant needs to only support v3 schematics with active low
221 power enable for WiFi, `default y` entry for it can be
224 config VARIANT_MIN_BOARD_ID_WIFI_POWER_ACTIVE_LOW
226 depends on VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH
227 default 3 if BOARD_GOOGLE_BERKNIP
228 default 2 if BOARD_GOOGLE_VILBOZ
229 default 1 if BOARD_GOOGLE_WOOMAX
230 default VARIANT_MIN_BOARD_ID_V3_SCHEMATICS
232 Minimum board version where the variant starts supporting
233 active low power enable for WiFi.
235 config VARIANT_HAS_FPMCU
237 default y if BOARD_GOOGLE_BERKNIP
238 default y if BOARD_GOOGLE_MORPHIUS
241 Select y if any SKU of the board has a fingerprint sensor
243 config VARIANT_MAX_BOARD_ID_BROKEN_FMPCU_POWER
245 default 4 if BOARD_GOOGLE_MORPHIUS
246 default 3 if BOARD_GOOGLE_BERKNIP
249 Last board version that needs the extra delay for FPMCU init.
251 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
252 config EFS_SPI_READ_MODE
253 default 4 # Dual IO (1-2-2)
258 config EFS_SPI_MICRON_FLAG
261 config NORMAL_READ_SPI_SPEED
272 config CHROMEOS_WIFI_SAR
274 default y if CHROMEOS
275 select DRIVERS_WIFI_GENERIC
279 select GEO_SAR_ENABLE
281 endif # BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ