Martin Roth | 41a8997 | 2024-02-16 10:57:31 -0700 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 3 | config BOARD_GOOGLE_BROX_COMMON |
| 4 | def_bool n |
| 5 | select DRIVERS_GENERIC_GPIO_KEYS |
| 6 | select DRIVERS_I2C_GENERIC |
| 7 | select DRIVERS_I2C_HID |
| 8 | select DRIVERS_INTEL_DPTF |
| 9 | select DRIVERS_INTEL_DPTF_SUPPORTS_TPCH |
| 10 | select DRIVERS_INTEL_PMC |
| 11 | select DRIVERS_INTEL_SOUNDWIRE |
| 12 | select DRIVERS_INTEL_USB4_RETIMER |
| 13 | select DRIVERS_SPI_ACPI |
| 14 | select DRIVERS_WIFI_GENERIC |
| 15 | select EC_GOOGLE_CHROMEEC |
| 16 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 17 | select EC_GOOGLE_CHROMEEC_ESPI |
| 18 | select EC_GOOGLE_CHROMEEC_SKUID |
Krishna Prasad Bhat | 3e77f77 | 2024-04-24 12:06:12 +0530 | [diff] [blame] | 19 | select ENABLE_TCSS_USB_DETECTION if !(SOC_INTEL_TCSS_USE_PDC_PMC_USBC_MUX_CONFIGURATION || CHROMEOS) |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 20 | select FW_CONFIG |
| 21 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
| 22 | select GOOGLE_SMBIOS_MAINBOARD_VERSION |
| 23 | select HAVE_ACPI_RESUME |
| 24 | select HAVE_ACPI_TABLES |
| 25 | select HAVE_FSP_LOGO_SUPPORT if RUN_FSP_GOP |
| 26 | select I2C_TPM |
| 27 | select INTEL_LPSS_UART_FOR_CONSOLE |
| 28 | select MAINBOARD_HAS_CHROMEOS |
| 29 | select MAINBOARD_HAS_TPM2 |
| 30 | select PMC_IPC_ACPI_INTERFACE |
| 31 | select SOC_INTEL_CSE_LITE_SKU |
Karthikeyan Ramasubramanian | 817c58c | 2024-05-08 13:18:36 -0600 | [diff] [blame] | 32 | select SOC_INTEL_CSE_SEND_EOP_ASYNC |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 33 | select SOC_INTEL_COMMON_BLOCK_USB4 |
| 34 | select SOC_INTEL_COMMON_BLOCK_TCSS |
| 35 | select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 36 | select SOC_INTEL_COMMON_BASECODE_DEBUG_FEATURE |
| 37 | select SOC_INTEL_CRASHLOG |
| 38 | select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V1 |
| 39 | |
| 40 | config BOARD_GOOGLE_BASEBOARD_BROX |
| 41 | def_bool n |
| 42 | select BOARD_GOOGLE_BROX_COMMON |
| 43 | select BOARD_ROMSIZE_KB_32768 |
| 44 | select DRIVERS_AUDIO_SOF |
| 45 | select DRIVERS_GFX_GENERIC |
| 46 | select HAVE_SLP_S0_GATE |
Eren Peng | 1a39572 | 2024-04-25 13:25:05 +0800 | [diff] [blame] | 47 | select MEMORY_SOLDERDOWN if !BOARD_GOOGLE_GREENBAYUPOC |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_IPU |
| 49 | select SOC_INTEL_CRASHLOG |
| 50 | select SOC_INTEL_RAPTORLAKE |
Shelley Chen | 4927271 | 2023-10-25 18:49:13 -0700 | [diff] [blame] | 51 | select SOC_INTEL_ALDERLAKE_PCH_P |
Poornima Tom | d5bcfe1 | 2023-12-22 05:34:31 +0530 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_HDA_VERB |
Krishna Prasad Bhat | 3e77f77 | 2024-04-24 12:06:12 +0530 | [diff] [blame] | 53 | select SOC_INTEL_TCSS_USE_PDC_PMC_USBC_MUX_CONFIGURATION |
Ivy Jian | 1397fd3 | 2023-11-28 15:17:40 +0800 | [diff] [blame] | 54 | select DRIVERS_INTEL_ISH |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 55 | select SYSTEM_TYPE_LAPTOP |
Shelley Chen | 7e775cf | 2023-11-14 12:58:55 -0800 | [diff] [blame] | 56 | select TPM_GOOGLE_TI50 |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 57 | |
| 58 | config BOARD_GOOGLE_BROX |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 59 | select BOARD_GOOGLE_BASEBOARD_BROX |
Shelley Chen | 7e0f9ed | 2024-01-18 16:14:51 -0800 | [diff] [blame] | 60 | select CHROMEOS_WIFI_SAR if CHROMEOS |
Ashish Kumar Mishra | ebc6f9d | 2024-03-13 18:11:04 +0530 | [diff] [blame] | 61 | select USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 62 | |
Yuval Peress | 3ac72f8 | 2024-02-28 21:15:04 -0700 | [diff] [blame] | 63 | config BOARD_GOOGLE_BROX_EC_ISH |
| 64 | select BOARD_GOOGLE_BASEBOARD_BROX |
| 65 | select CHROMEOS_WIFI_SAR if CHROMEOS |
| 66 | select SOC_INTEL_STORE_ISH_FW_VERSION |
| 67 | |
Kun Liu | 1bf0c3f | 2024-04-10 13:40:13 +0800 | [diff] [blame] | 68 | config BOARD_GOOGLE_LOTSO |
| 69 | select BOARD_GOOGLE_BASEBOARD_BROX |
| 70 | |
Eren Peng | 45145ba | 2024-04-01 11:12:02 +0800 | [diff] [blame] | 71 | config BOARD_GOOGLE_GREENBAYUPOC |
| 72 | select BOARD_GOOGLE_BASEBOARD_BROX |
Eren Peng | bb616ca | 2024-04-26 11:05:05 +0800 | [diff] [blame^] | 73 | select CHROMEOS_WIFI_SAR if CHROMEOS |
Eren Peng | 1a39572 | 2024-04-25 13:25:05 +0800 | [diff] [blame] | 74 | select MEMORY_SODIMM |
Eren Peng | 45145ba | 2024-04-01 11:12:02 +0800 | [diff] [blame] | 75 | |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 76 | if BOARD_GOOGLE_BROX_COMMON |
| 77 | |
| 78 | config BASEBOARD_DIR |
| 79 | string |
| 80 | default "brox" if BOARD_GOOGLE_BASEBOARD_BROX |
| 81 | |
| 82 | config CHROMEOS |
| 83 | select EC_GOOGLE_CHROMEEC_SWITCHES |
Shelley Chen | b6053bc | 2023-12-14 19:48:18 -0800 | [diff] [blame] | 84 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 85 | select HAS_RECOVERY_MRC_CACHE |
| 86 | |
| 87 | config CHROMEOS_WIFI_SAR |
| 88 | bool "Enable SAR options for ChromeOS build" |
| 89 | depends on CHROMEOS |
| 90 | select DSAR_ENABLE |
| 91 | select GEO_SAR_ENABLE |
| 92 | select SAR_ENABLE |
| 93 | select USE_SAR |
| 94 | |
| 95 | config DEVICETREE |
| 96 | default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb" |
| 97 | |
| 98 | config DRIVER_TPM_I2C_BUS |
| 99 | hex |
Yuval Peress | 3ac72f8 | 2024-02-28 21:15:04 -0700 | [diff] [blame] | 100 | default 0x4 if BOARD_GOOGLE_BASEBOARD_BROX |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 101 | |
| 102 | config DRIVER_TPM_I2C_ADDR |
| 103 | hex |
| 104 | default 0x50 |
| 105 | |
| 106 | config FMDFILE |
| 107 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS |
| 108 | |
| 109 | config TPM_TIS_ACPI_INTERRUPT |
| 110 | int |
Shelley Chen | ea9248e | 2023-11-13 10:02:28 -0800 | [diff] [blame] | 111 | default 66 # GPE0_DW2_02 (GPP_E2) |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 112 | |
| 113 | config OVERRIDE_DEVICETREE |
| 114 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
| 115 | |
| 116 | config MAINBOARD_DIR |
| 117 | default "google/brox" |
| 118 | |
| 119 | config MAINBOARD_FAMILY |
| 120 | string |
| 121 | default "Google_Brox" if BOARD_GOOGLE_BASEBOARD_BROX |
| 122 | |
| 123 | config MAINBOARD_PART_NUMBER |
Yuval Peress | 3ac72f8 | 2024-02-28 21:15:04 -0700 | [diff] [blame] | 124 | default "Brox_Ec_Ish" if BOARD_GOOGLE_BROX_EC_ISH |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 125 | default "Brox" if BOARD_GOOGLE_BROX |
Kun Liu | 1bf0c3f | 2024-04-10 13:40:13 +0800 | [diff] [blame] | 126 | default "Lotso" if BOARD_GOOGLE_LOTSO |
Eren Peng | 45145ba | 2024-04-01 11:12:02 +0800 | [diff] [blame] | 127 | default "Greenbayupoc" if BOARD_GOOGLE_GREENBAYUPOC |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 128 | |
| 129 | config VARIANT_DIR |
Yuval Peress | 3ac72f8 | 2024-02-28 21:15:04 -0700 | [diff] [blame] | 130 | default "brox" if BOARD_GOOGLE_BROX || BOARD_GOOGLE_BROX_EC_ISH |
Kun Liu | 1bf0c3f | 2024-04-10 13:40:13 +0800 | [diff] [blame] | 131 | default "lotso" if BOARD_GOOGLE_LOTSO |
Eren Peng | 45145ba | 2024-04-01 11:12:02 +0800 | [diff] [blame] | 132 | default "greenbayupoc" if BOARD_GOOGLE_GREENBAYUPOC |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 133 | |
| 134 | config VBOOT |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 135 | select VBOOT_LID_SWITCH |
| 136 | |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 137 | config UART_FOR_CONSOLE |
| 138 | int |
| 139 | default 0 |
| 140 | |
| 141 | config HAVE_WWAN_POWER_SEQUENCE |
| 142 | def_bool n |
| 143 | help |
| 144 | Select this if the variant has a WWAN module and requires the poweroff sequence |
| 145 | to be performed on shutdown. Must define WWAN_FCPO, WWAN_RST and WWAN_PERST GPIOs |
| 146 | in variant.h, as well as T1_OFF_MS (time between PERST & RST) and T2_OFF_MS (time |
| 147 | between RST and FCPO). WWAN_PERST and T1_OFF_MS are only necessary for PCIe WWAN |
| 148 | (when HAVE_PCIE_WWAN is also selected). |
| 149 | |
| 150 | config HAVE_PCIE_WWAN |
| 151 | def_bool n |
| 152 | |
| 153 | config USE_PM_ACPI_TIMER |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 154 | default n |
| 155 | |
| 156 | config MEMORY_SODIMM |
| 157 | def_bool n |
| 158 | select SPD_CACHE_ENABLE |
| 159 | select SPD_CACHE_IN_FMAP |
| 160 | |
| 161 | config MEMORY_SOLDERDOWN |
| 162 | def_bool n |
| 163 | select CHROMEOS_DRAM_PART_NUMBER_IN_CBI if CHROMEOS |
| 164 | select HAVE_SPD_IN_CBFS |
| 165 | |
| 166 | config HAVE_SLP_S0_GATE |
| 167 | def_bool n |
| 168 | |
| 169 | config PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS |
| 170 | int |
| 171 | default 33 |
| 172 | |
Shelley Chen | 9b230ae | 2023-09-15 16:01:31 -0700 | [diff] [blame] | 173 | endif # BOARD_GOOGLE_BROX_COMMON |