Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | config BOARD_GOOGLE_BASEBOARD_TREMBYLE |
| 4 | def_bool n |
| 5 | |
| 6 | config BOARD_GOOGLE_BASEBOARD_DALBOZ |
| 7 | def_bool n |
| 8 | |
| 9 | if BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ |
| 10 | |
| 11 | config BOARD_SPECIFIC_OPTIONS |
| 12 | def_bool y |
| 13 | select SOC_AMD_COMMON_BLOCK_USE_ESPI |
| 14 | select SOC_AMD_PICASSO |
Tim Van Patten | 3ed3138 | 2022-09-13 15:19:31 -0600 | [diff] [blame] | 15 | select SOC_AMD_COMMON_BLOCK_ACPI_DPTC if BOARD_GOOGLE_MORPHIUS |
Aaron Durbin | bb98887 | 2020-08-20 10:19:09 -0600 | [diff] [blame] | 16 | select SOC_AMD_COMMON_BLOCK_GRAPHICS_ATIF |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 17 | select BOARD_ROMSIZE_KB_16384 |
Furquan Shaikh | 24ec79c | 2020-07-16 13:40:28 -0700 | [diff] [blame] | 18 | select DRIVERS_AMD_I2S_MACHINE_DEV |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 19 | select DISABLE_SPI_FLASH_ROM_SHARING |
Furquan Shaikh | 16868bc | 2020-06-30 16:13:47 -0700 | [diff] [blame] | 20 | select DRIVERS_GENERIC_GPIO_KEYS |
Frank Wu | fe4c6b8 | 2021-03-19 17:06:40 +0800 | [diff] [blame] | 21 | select DRIVERS_GENERIC_ALC1015 |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 22 | select DRIVERS_I2C_GENERIC |
| 23 | select DRIVERS_I2C_HID |
| 24 | select EC_GOOGLE_CHROMEEC |
Furquan Shaikh | e284bff | 2020-07-02 16:03:06 -0700 | [diff] [blame] | 25 | select EC_GOOGLE_CHROMEEC_AUDIO_CODEC |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 26 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 27 | select EC_GOOGLE_CHROMEEC_ESPI |
Frank Wu | d12d24b | 2021-03-19 16:47:00 +0800 | [diff] [blame] | 28 | select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 29 | select EC_GOOGLE_CHROMEEC_I2C_TUNNEL |
| 30 | select EC_GOOGLE_CHROMEEC_SKUID |
Furquan Shaikh | b5d98667 | 2020-06-12 16:47:45 -0700 | [diff] [blame] | 31 | select ELOG |
| 32 | select ELOG_BOOT_COUNT |
| 33 | select ELOG_GSMI |
Frank Wu | d12d24b | 2021-03-19 16:47:00 +0800 | [diff] [blame] | 34 | select FW_CONFIG |
| 35 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 36 | select GFXUMA |
| 37 | select GOOGLE_SMBIOS_MAINBOARD_VERSION |
| 38 | select MAINBOARD_HAS_CHROMEOS |
Felix Held | 0dfaf33 | 2020-12-09 16:25:18 +0100 | [diff] [blame] | 39 | select AMD_SOC_CONSOLE_UART |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 40 | select I2C_TPM |
| 41 | select TPM_GOOGLE_CR50 |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 42 | select MAINBOARD_HAS_TPM2 |
| 43 | select PCIEXP_ASPM |
| 44 | select PCIEXP_CLK_PM |
| 45 | select PCIEXP_COMMON_CLOCK |
| 46 | select PCIEXP_L1_SUB_STATE |
| 47 | select HAVE_EM100_SUPPORT |
| 48 | select SYSTEM_TYPE_LAPTOP |
| 49 | select DRIVERS_GENERIC_MAX98357A |
| 50 | select HAVE_ACPI_RESUME |
| 51 | select DRIVERS_USB_ACPI |
Furquan Shaikh | baf1364 | 2020-06-03 19:41:23 -0700 | [diff] [blame] | 52 | select DRIVERS_UART_ACPI |
John Su | f37e8ea | 2021-01-22 14:16:36 +0800 | [diff] [blame] | 53 | select DRIVERS_GENERIC_BAYHUB_LV2 |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 54 | |
Furquan Shaikh | b5d98667 | 2020-06-12 16:47:45 -0700 | [diff] [blame] | 55 | config ELOG_BOOT_COUNT_CMOS_OFFSET |
| 56 | int |
| 57 | default 144 |
| 58 | |
Furquan Shaikh | 46399b5 | 2020-06-05 08:59:08 -0700 | [diff] [blame] | 59 | # FMDFILE is set here so that coreboot build picks up this flash map layout |
| 60 | # even when CHROMEOS is not selected when building upstream. |
| 61 | config FMDFILE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 62 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" |
Furquan Shaikh | 46399b5 | 2020-06-05 08:59:08 -0700 | [diff] [blame] | 63 | |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 64 | config MAINBOARD_DIR |
Patrick Georgi | 3588d7b | 2020-06-17 17:47:40 +0200 | [diff] [blame] | 65 | default "google/zork" |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 66 | |
| 67 | config VARIANT_DIR |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 68 | default "ezkinil" if BOARD_GOOGLE_EZKINIL |
| 69 | default "morphius" if BOARD_GOOGLE_MORPHIUS |
| 70 | default "trembyle" if BOARD_GOOGLE_TREMBYLE |
| 71 | default "dalboz" if BOARD_GOOGLE_DALBOZ |
| 72 | default "berknip" if BOARD_GOOGLE_BERKNIP |
Peichao Wang | c618701 | 2020-05-28 10:02:40 +0800 | [diff] [blame] | 73 | default "vilboz" if BOARD_GOOGLE_VILBOZ |
Kane Chen | 411a6ab | 2020-06-22 17:13:37 +0800 | [diff] [blame] | 74 | default "woomax" if BOARD_GOOGLE_WOOMAX |
Kevin Chiu | 77b89c8 | 2020-07-20 12:13:23 +0800 | [diff] [blame] | 75 | default "dirinboz" if BOARD_GOOGLE_DIRINBOZ |
Kane Chen | a3ac820 | 2020-11-03 10:03:25 +0800 | [diff] [blame] | 76 | default "shuboz" if BOARD_GOOGLE_SHUBOZ |
Kevin Chiu | f73580f | 2020-11-18 23:24:13 +0800 | [diff] [blame] | 77 | default "gumboz" if BOARD_GOOGLE_GUMBOZ |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 78 | |
| 79 | config MAINBOARD_PART_NUMBER |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 80 | default "Ezkinil" if BOARD_GOOGLE_EZKINIL |
| 81 | default "Morphius" if BOARD_GOOGLE_MORPHIUS |
| 82 | default "Trembyle" if BOARD_GOOGLE_TREMBYLE |
| 83 | default "Dalboz" if BOARD_GOOGLE_DALBOZ |
| 84 | default "Berknip" if BOARD_GOOGLE_BERKNIP |
Peichao Wang | c618701 | 2020-05-28 10:02:40 +0800 | [diff] [blame] | 85 | default "Vilboz" if BOARD_GOOGLE_VILBOZ |
Kane Chen | 411a6ab | 2020-06-22 17:13:37 +0800 | [diff] [blame] | 86 | default "Woomax" if BOARD_GOOGLE_WOOMAX |
Kevin Chiu | 77b89c8 | 2020-07-20 12:13:23 +0800 | [diff] [blame] | 87 | default "Dirinboz" if BOARD_GOOGLE_DIRINBOZ |
Kane Chen | a3ac820 | 2020-11-03 10:03:25 +0800 | [diff] [blame] | 88 | default "Shuboz" if BOARD_GOOGLE_SHUBOZ |
Kevin Chiu | f73580f | 2020-11-18 23:24:13 +0800 | [diff] [blame] | 89 | default "Gumboz" if BOARD_GOOGLE_GUMBOZ |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 90 | |
| 91 | config DEVICETREE |
Rob Barnes | ddeba9f | 2020-06-23 22:32:52 -0600 | [diff] [blame] | 92 | default "variants/baseboard/devicetree_trembyle.cb" if BOARD_GOOGLE_BASEBOARD_TREMBYLE |
| 93 | default "variants/baseboard/devicetree_dalboz.cb" if BOARD_GOOGLE_BASEBOARD_DALBOZ |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 94 | |
| 95 | config OVERRIDE_DEVICETREE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 96 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 97 | |
| 98 | config MAINBOARD_FAMILY |
| 99 | string |
| 100 | default "Google_Zork" |
| 101 | |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 102 | config ONBOARD_VGA_IS_PRIMARY |
| 103 | bool |
| 104 | default y |
| 105 | |
Angel Pons | 06b20ce | 2021-03-08 11:44:19 +0100 | [diff] [blame] | 106 | config VGA_BIOS |
| 107 | default y if USE_AMD_BLOBS |
| 108 | |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 109 | config VBOOT |
Matt DeVillier | 6f57321 | 2022-11-17 14:17:52 -0600 | [diff] [blame^] | 110 | bool |
| 111 | # selected by default as PSP verstage required for booting at present time |
| 112 | default y |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 113 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 114 | select VBOOT_LID_SWITCH |
Martin Roth | 560c11e | 2020-11-12 10:33:43 -0700 | [diff] [blame] | 115 | select VBOOT_STARTS_BEFORE_BOOTBLOCK |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 116 | |
| 117 | config VBOOT_VBNV_OFFSET |
| 118 | hex |
| 119 | default 0x2A |
| 120 | |
| 121 | config CHROMEOS |
| 122 | # Use default libpayload config |
| 123 | select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE |
| 124 | |
| 125 | config AMD_FWM_POSITION_INDEX |
| 126 | int |
| 127 | default 2 |
| 128 | |
| 129 | config DRIVER_TPM_I2C_BUS |
| 130 | hex |
| 131 | default 0x03 |
| 132 | |
| 133 | config DRIVER_TPM_I2C_ADDR |
| 134 | hex |
| 135 | default 0x50 |
| 136 | |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 137 | config VARIANT_SUPPORTS_PRE_V3_SCHEMATICS |
| 138 | bool |
| 139 | default y if BOARD_GOOGLE_TREMBYLE |
| 140 | default y if BOARD_GOOGLE_EZKINIL |
| 141 | default y if BOARD_GOOGLE_MORPHIUS |
| 142 | default y if BOARD_GOOGLE_BERKNIP |
| 143 | default y if BOARD_GOOGLE_DALBOZ |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 144 | default n |
| 145 | help |
| 146 | Whether this variant supports pre-v3 version of schematics. |
| 147 | Eventually, when a variant moves to a point where it no |
| 148 | longer has to support pre-v3 schematics, `default y` entry |
| 149 | for it can be dropped. |
| 150 | |
Josie Nordrum | c759e5e | 2020-08-03 11:05:14 -0600 | [diff] [blame] | 151 | config VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS |
| 152 | bool |
| 153 | default y if BOARD_GOOGLE_TREMBYLE |
| 154 | default y if BOARD_GOOGLE_EZKINIL |
| 155 | default y if BOARD_GOOGLE_MORPHIUS |
| 156 | default y if BOARD_GOOGLE_BERKNIP |
| 157 | default y if BOARD_GOOGLE_DALBOZ |
| 158 | default y if BOARD_GOOGLE_WOOMAX |
| 159 | default y if BOARD_GOOGLE_VILBOZ |
| 160 | default y if BOARD_GOOGLE_DIRINBOZ |
| 161 | default n |
| 162 | |
| 163 | config VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS |
| 164 | int |
| 165 | depends on VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS |
| 166 | default 4 if BOARD_GOOGLE_TREMBYLE |
| 167 | default 3 if BOARD_GOOGLE_EZKINIL |
| 168 | default 4 if BOARD_GOOGLE_MORPHIUS |
| 169 | default 3 if BOARD_GOOGLE_BERKNIP |
| 170 | default 3 if BOARD_GOOGLE_DALBOZ |
Kane Chen | 9a3b8bd | 2020-08-21 17:29:19 +0800 | [diff] [blame] | 171 | default 1 if BOARD_GOOGLE_WOOMAX |
Josie Nordrum | c759e5e | 2020-08-03 11:05:14 -0600 | [diff] [blame] | 172 | default 2 if BOARD_GOOGLE_VILBOZ |
| 173 | default 2 if BOARD_GOOGLE_DIRINBOZ |
| 174 | default 256 |
| 175 | help |
| 176 | Minimum board version where the variant starts supporting |
| 177 | v3.6+ version of reference schematics. |
| 178 | |
Furquan Shaikh | 996fdc0 | 2020-06-18 01:00:38 -0700 | [diff] [blame] | 179 | config VARIANT_MIN_BOARD_ID_V3_SCHEMATICS |
| 180 | int |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 181 | depends on VARIANT_SUPPORTS_PRE_V3_SCHEMATICS |
Furquan Shaikh | 996fdc0 | 2020-06-18 01:00:38 -0700 | [diff] [blame] | 182 | default 4 if BOARD_GOOGLE_TREMBYLE |
| 183 | default 3 if BOARD_GOOGLE_EZKINIL |
| 184 | default 3 if BOARD_GOOGLE_MORPHIUS |
| 185 | default 2 if BOARD_GOOGLE_BERKNIP |
| 186 | default 3 if BOARD_GOOGLE_DALBOZ |
Furquan Shaikh | 70b7fa1 | 2020-06-29 11:56:04 -0700 | [diff] [blame] | 187 | default 256 |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 188 | help |
| 189 | Minimum board version where the variant starts supporting |
| 190 | v3 version of reference schematics. |
| 191 | |
| 192 | config VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH |
| 193 | bool |
| 194 | default y if VARIANT_SUPPORTS_PRE_V3_SCHEMATICS |
| 195 | default y if BOARD_GOOGLE_BERKNIP |
| 196 | default y if BOARD_GOOGLE_VILBOZ |
Kane Chen | 411a6ab | 2020-06-22 17:13:37 +0800 | [diff] [blame] | 197 | default y if BOARD_GOOGLE_WOOMAX |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 198 | default n |
| 199 | help |
| 200 | Whether this variant supports active high power enable for |
| 201 | WiFi. For pre-v3 schematics, this is always true. There are |
| 202 | some variants which used v3 schematics, but did not pick up |
| 203 | the change for active low WiFi power enable. Those variants |
| 204 | will have to set this config to true. Eventually, when a |
| 205 | variant needs to only support v3 schematics with active low |
| 206 | power enable for WiFi, `default y` entry for it can be |
| 207 | dropped. |
Furquan Shaikh | 70b7fa1 | 2020-06-29 11:56:04 -0700 | [diff] [blame] | 208 | |
| 209 | config VARIANT_MIN_BOARD_ID_WIFI_POWER_ACTIVE_LOW |
| 210 | int |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 211 | depends on VARIANT_SUPPORTS_WIFI_POWER_ACTIVE_HIGH |
Furquan Shaikh | 70b7fa1 | 2020-06-29 11:56:04 -0700 | [diff] [blame] | 212 | default 3 if BOARD_GOOGLE_BERKNIP |
Peichao Wang | 1114b20 | 2020-07-07 11:50:30 +0800 | [diff] [blame] | 213 | default 2 if BOARD_GOOGLE_VILBOZ |
Kane Chen | 411a6ab | 2020-06-22 17:13:37 +0800 | [diff] [blame] | 214 | default 1 if BOARD_GOOGLE_WOOMAX |
Furquan Shaikh | 70b7fa1 | 2020-06-29 11:56:04 -0700 | [diff] [blame] | 215 | default VARIANT_MIN_BOARD_ID_V3_SCHEMATICS |
Furquan Shaikh | 30ee0d8 | 2020-07-07 12:50:55 -0700 | [diff] [blame] | 216 | help |
| 217 | Minimum board version where the variant starts supporting |
| 218 | active low power enable for WiFi. |
Furquan Shaikh | 996fdc0 | 2020-06-18 01:00:38 -0700 | [diff] [blame] | 219 | |
Martin Roth | 726504a | 2020-10-30 16:41:32 -0600 | [diff] [blame] | 220 | config VARIANT_HAS_FPMCU |
| 221 | bool |
| 222 | default y if BOARD_GOOGLE_BERKNIP |
| 223 | default y if BOARD_GOOGLE_MORPHIUS |
| 224 | default n |
| 225 | help |
| 226 | Select y if any SKU of the board has a fingerprint sensor |
| 227 | |
| 228 | config VARIANT_MAX_BOARD_ID_BROKEN_FMPCU_POWER |
| 229 | int |
| 230 | default 4 if BOARD_GOOGLE_MORPHIUS |
| 231 | default 3 if BOARD_GOOGLE_BERKNIP |
| 232 | default 0 |
| 233 | help |
| 234 | Last board version that needs the extra delay for FPMCU init. |
| 235 | |
Martin Roth | dd6c733 | 2021-08-09 10:39:27 -0600 | [diff] [blame] | 236 | if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig |
Matt Papageorge | 95c42c3 | 2020-07-08 11:33:48 -0500 | [diff] [blame] | 237 | config EFS_SPI_READ_MODE |
Martin Roth | dd6c733 | 2021-08-09 10:39:27 -0600 | [diff] [blame] | 238 | default 4 # Dual IO (1-2-2) |
Matt Papageorge | 95c42c3 | 2020-07-08 11:33:48 -0500 | [diff] [blame] | 239 | |
| 240 | config EFS_SPI_SPEED |
Martin Roth | dd6c733 | 2021-08-09 10:39:27 -0600 | [diff] [blame] | 241 | default 0 # 66MHz |
Matt Papageorge | 95c42c3 | 2020-07-08 11:33:48 -0500 | [diff] [blame] | 242 | |
| 243 | config EFS_SPI_MICRON_FLAG |
Matt Papageorge | 95c42c3 | 2020-07-08 11:33:48 -0500 | [diff] [blame] | 244 | default 0 |
| 245 | |
Martin Roth | dd6c733 | 2021-08-09 10:39:27 -0600 | [diff] [blame] | 246 | config NORMAL_READ_SPI_SPEED |
| 247 | default 1 # 33MHz |
| 248 | |
| 249 | config ALT_SPI_SPEED |
| 250 | default 0 # 66MHz |
| 251 | |
| 252 | config TPM_SPI_SPEED |
| 253 | default 0 # 66MHz |
| 254 | |
| 255 | endif # !EM100 |
| 256 | |
Kevin Chiu | 638172b | 2020-08-20 18:12:10 +0800 | [diff] [blame] | 257 | config CHROMEOS_WIFI_SAR |
| 258 | bool |
| 259 | default y if CHROMEOS |
Aaron Durbin | 48697fe | 2020-08-26 08:44:06 -0600 | [diff] [blame] | 260 | select DRIVERS_WIFI_GENERIC |
Kevin Chiu | 638172b | 2020-08-20 18:12:10 +0800 | [diff] [blame] | 261 | select DSAR_ENABLE |
| 262 | select SAR_ENABLE |
| 263 | select USE_SAR |
| 264 | select GEO_SAR_ENABLE |
| 265 | |
Raul E Rangel | b3c4132 | 2020-05-20 14:07:41 -0600 | [diff] [blame] | 266 | endif # BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ |