1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_DALBOZ
6 config BOARD_GOOGLE_BASEBOARD_TREMBYLE
9 config BOARD_GOOGLE_BERKNIP
10 select BOARD_GOOGLE_BASEBOARD_TREMBYLE
12 config BOARD_GOOGLE_DALBOZ
13 select BOARD_GOOGLE_BASEBOARD_DALBOZ
15 config BOARD_GOOGLE_DIRINBOZ
16 select BOARD_GOOGLE_BASEBOARD_DALBOZ
18 config BOARD_GOOGLE_EZKINIL
19 select BOARD_GOOGLE_BASEBOARD_TREMBYLE
21 config BOARD_GOOGLE_GUMBOZ
22 select BOARD_GOOGLE_BASEBOARD_DALBOZ
24 config BOARD_GOOGLE_MORPHIUS
25 select BOARD_GOOGLE_BASEBOARD_TREMBYLE
27 config BOARD_GOOGLE_SHUBOZ
28 select BOARD_GOOGLE_BASEBOARD_DALBOZ
30 config BOARD_GOOGLE_TREMBYLE
31 select BOARD_GOOGLE_BASEBOARD_TREMBYLE
33 config BOARD_GOOGLE_VILBOZ
34 select BOARD_GOOGLE_BASEBOARD_DALBOZ
35 select DRIVERS_I2C_SX9324
36 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
38 config BOARD_GOOGLE_WOOMAX
39 select BOARD_GOOGLE_BASEBOARD_TREMBYLE
41 if BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ
43 config BOARD_SPECIFIC_OPTIONS
45 select AMD_FWM_POSITION_E20000_DEFAULT
46 select AMD_SOC_CONSOLE_UART
47 select BOARD_ROMSIZE_KB_16384
48 select DISABLE_SPI_FLASH_ROM_SHARING
49 select DRIVERS_AMD_I2S_MACHINE_DEV
50 select DRIVERS_GENERIC_ALC1015
51 select DRIVERS_GENERIC_BAYHUB_LV2
52 select DRIVERS_GENERIC_GPIO_KEYS
53 select DRIVERS_GENERIC_MAX98357A
54 select DRIVERS_UART_ACPI
55 select DRIVERS_USB_ACPI
56 select DRIVERS_I2C_GENERIC
57 select DRIVERS_I2C_HID
58 select EC_GOOGLE_CHROMEEC
59 select EC_GOOGLE_CHROMEEC_AUDIO_CODEC
60 select EC_GOOGLE_CHROMEEC_BOARDID
61 select EC_GOOGLE_CHROMEEC_ESPI
62 select EC_GOOGLE_CHROMEEC_I2C_TUNNEL
63 select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
64 select EC_GOOGLE_CHROMEEC_SKUID
65 select EDK2_PCO_MMIO_EMMC if EDK2_REPO_MRCHROMEBOX
67 select ELOG_BOOT_COUNT
70 select FW_CONFIG_SOURCE_CHROMEEC_CBI
72 select GOOGLE_SMBIOS_MAINBOARD_VERSION
73 select HAVE_ACPI_RESUME
74 select HAVE_EM100_SUPPORT
76 select MAINBOARD_HAS_CHROMEOS
77 select MAINBOARD_HAS_TPM2
80 select PCIEXP_COMMON_CLOCK
81 select PCIEXP_L1_SUB_STATE
82 select SOC_AMD_COMMON_BLOCK_ACPI_DPTC if BOARD_GOOGLE_MORPHIUS
83 select SOC_AMD_COMMON_BLOCK_USE_ESPI
84 select SOC_AMD_COMMON_BLOCK_GRAPHICS_ATIF
85 select SOC_AMD_PICASSO
86 select SYSTEM_TYPE_LAPTOP
87 select TPM_GOOGLE_CR50
89 config ELOG_BOOT_COUNT_CMOS_OFFSET
93 # FMDFILE is set here so that coreboot build picks up this flash map layout
94 # even when CHROMEOS is not selected when building upstream.
96 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
102 default "berknip" if BOARD_GOOGLE_BERKNIP
103 default "dalboz" if BOARD_GOOGLE_DALBOZ
104 default "dirinboz" if BOARD_GOOGLE_DIRINBOZ
105 default "ezkinil" if BOARD_GOOGLE_EZKINIL
106 default "gumboz" if BOARD_GOOGLE_GUMBOZ
107 default "morphius" if BOARD_GOOGLE_MORPHIUS
108 default "shuboz" if BOARD_GOOGLE_SHUBOZ
109 default "trembyle" if BOARD_GOOGLE_TREMBYLE
110 default "vilboz" if BOARD_GOOGLE_VILBOZ
111 default "woomax" if BOARD_GOOGLE_WOOMAX
113 config MAINBOARD_PART_NUMBER
114 default "Berknip" if BOARD_GOOGLE_BERKNIP
115 default "Dalboz" if BOARD_GOOGLE_DALBOZ
116 default "Dirinboz" if BOARD_GOOGLE_DIRINBOZ
117 default "Ezkinil" if BOARD_GOOGLE_EZKINIL
118 default "Gumboz" if BOARD_GOOGLE_GUMBOZ
119 default "Morphius" if BOARD_GOOGLE_MORPHIUS
120 default "Shuboz" if BOARD_GOOGLE_SHUBOZ
121 default "Trembyle" if BOARD_GOOGLE_TREMBYLE
122 default "Vilboz" if BOARD_GOOGLE_VILBOZ
123 default "Woomax" if BOARD_GOOGLE_WOOMAX
127 default "dalboz" if BOARD_GOOGLE_BASEBOARD_DALBOZ
128 default "trembyle" if BOARD_GOOGLE_BASEBOARD_TREMBYLE
131 default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
133 config OVERRIDE_DEVICETREE
134 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
136 config MAINBOARD_FAMILY
138 default "Google_Zork"
140 config ONBOARD_VGA_IS_PRIMARY
145 default y if USE_AMD_BLOBS
149 # selected by default as PSP verstage required for booting at present time
151 select EC_GOOGLE_CHROMEEC_SWITCHES
152 select VBOOT_LID_SWITCH
153 select VBOOT_STARTS_BEFORE_BOOTBLOCK
155 config VBOOT_VBNV_OFFSET
160 # Use default libpayload config
161 select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
163 config DRIVER_TPM_I2C_BUS
167 config DRIVER_TPM_I2C_ADDR
175 config VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
177 default y if BOARD_GOOGLE_BERKNIP
178 default y if BOARD_GOOGLE_DALBOZ
179 default y if BOARD_GOOGLE_EZKINIL
180 default y if BOARD_GOOGLE_MORPHIUS
181 default y if BOARD_GOOGLE_TREMBYLE
184 Whether this variant supports pre-v3 version of schematics.
185 Eventually, when a variant moves to a point where it no
186 longer has to support pre-v3 schematics, `default y` entry
187 for it can be dropped.
189 config VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
191 default y if BOARD_GOOGLE_BERKNIP
192 default y if BOARD_GOOGLE_DALBOZ
193 default y if BOARD_GOOGLE_DIRINBOZ
194 default y if BOARD_GOOGLE_EZKINIL
195 default y if BOARD_GOOGLE_MORPHIUS
196 default y if BOARD_GOOGLE_TREMBYLE
197 default y if BOARD_GOOGLE_VILBOZ
198 default y if BOARD_GOOGLE_WOOMAX
201 config VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS
203 depends on VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
204 default 3 if BOARD_GOOGLE_BERKNIP
205 default 3 if BOARD_GOOGLE_DALBOZ
206 default 2 if BOARD_GOOGLE_DIRINBOZ
207 default 3 if BOARD_GOOGLE_EZKINIL
208 default 4 if BOARD_GOOGLE_MORPHIUS
209 default 4 if BOARD_GOOGLE_TREMBYLE
210 default 2 if BOARD_GOOGLE_VILBOZ
211 default 1 if BOARD_GOOGLE_WOOMAX
214 Minimum board version where the variant starts supporting
215 v3.6+ version of reference schematics.
217 config VARIANT_MIN_BOARD_ID_V3_SCHEMATICS
219 depends on VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
220 default 2 if BOARD_GOOGLE_BERKNIP
221 default 3 if BOARD_GOOGLE_DALBOZ
222 default 3 if BOARD_GOOGLE_EZKINIL
223 default 3 if BOARD_GOOGLE_MORPHIUS
224 default 4 if BOARD_GOOGLE_TREMBYLE
227 Minimum board version where the variant starts supporting
228 v3 version of reference schematics.
230 config VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH
232 default y if VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
233 default y if BOARD_GOOGLE_BERKNIP
234 default y if BOARD_GOOGLE_VILBOZ
235 default y if BOARD_GOOGLE_WOOMAX
238 Whether this variant supports active high power enable for
239 WiFi. For pre-v3 schematics, this is always true. There are
240 some variants which used v3 schematics, but did not pick up
241 the change for active low WiFi power enable. Those variants
242 will have to set this config to true. Eventually, when a
243 variant needs to only support v3 schematics with active low
244 power enable for WiFi, `default y` entry for it can be
247 config VARIANT_MIN_BOARD_ID_WIFI_POWER_ACTIVE_LOW
249 depends on VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH
250 default 3 if BOARD_GOOGLE_BERKNIP
251 default 2 if BOARD_GOOGLE_VILBOZ
252 default 1 if BOARD_GOOGLE_WOOMAX
253 default VARIANT_MIN_BOARD_ID_V3_SCHEMATICS
255 Minimum board version where the variant starts supporting
256 active low power enable for WiFi.
258 config VARIANT_HAS_FPMCU
260 default y if BOARD_GOOGLE_BERKNIP
261 default y if BOARD_GOOGLE_MORPHIUS
264 Select y if any SKU of the board has a fingerprint sensor
266 config VARIANT_MAX_BOARD_ID_BROKEN_FMPCU_POWER
268 default 3 if BOARD_GOOGLE_BERKNIP
269 default 4 if BOARD_GOOGLE_MORPHIUS
272 Last board version that needs the extra delay for FPMCU init.
274 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
275 config EFS_SPI_READ_MODE
276 default 4 # Dual IO (1-2-2)
281 config EFS_SPI_MICRON_FLAG
284 config NORMAL_READ_SPI_SPEED
295 config CHROMEOS_WIFI_SAR
297 default y if CHROMEOS
298 select DRIVERS_WIFI_GENERIC
300 select GEO_SAR_ENABLE
305 prompt "UMA Memory Allocation"
306 default ZORK_UMA_SIZE_64MB if CHROMEOS
307 default ZORK_UMA_SIZE_128MB
309 The amount of system memory allocated for the integrated GPU.
311 config ZORK_UMA_SIZE_64MB
314 config ZORK_UMA_SIZE_128MB
317 config ZORK_UMA_SIZE_256MB
320 config ZORK_UMA_SIZE_512MB
325 endif # BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ