1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_INTEL_MTLRVP_COMMON
5 select BOARD_ROMSIZE_KB_32768
6 select CPU_INTEL_SOCKET_OTHER
7 select DRIVERS_GENERIC_MAX98357A
8 select DRIVERS_I2C_GENERIC
10 select DRIVERS_I2C_MAX98373
11 select DRIVERS_INTEL_DPTF
12 select DRIVERS_INTEL_DPTF_SUPPORTS_TPCH
13 select DRIVERS_INTEL_MIPI_CAMERA
14 select DRIVERS_INTEL_SOUNDWIRE
15 select DRIVERS_SOUNDWIRE_ALC5682
16 select DRIVERS_SOUNDWIRE_ALC711
17 select DRIVERS_SOUNDWIRE_MAX98373
18 select DRIVERS_USB_ACPI
19 select HAVE_ACPI_RESUME
20 select HAVE_ACPI_TABLES
21 select HAVE_SPD_IN_CBFS
22 select MAINBOARD_HAS_CHROMEOS
23 select SOC_INTEL_COMMON_BLOCK_VARIANT_POWER_LIMIT
24 select SOC_INTEL_CSE_LITE_SKU
25 select SOC_INTEL_METEORLAKE_U_H
27 config BOARD_INTEL_MTLRVP_P
28 select BOARD_INTEL_MTLRVP_COMMON
30 config BOARD_INTEL_MTLRVP_P_EXT_EC
31 select BOARD_EXT_EC_SPECIFIC_OPTIONS
33 config BOARD_INTEL_MTLRVP4ES_P_EXT_EC
34 select BOARD_EXT_EC_SPECIFIC_OPTIONS
35 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
37 config BOARD_INTEL_MTLRVP_P_MCHP
38 select BOARD_EXT_EC_SPECIFIC_OPTIONS
39 select EC_GOOGLE_CHROMEEC_MEC
40 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
42 config BOARD_EXT_EC_SPECIFIC_OPTIONS
44 select BOARD_INTEL_MTLRVP_COMMON
45 select DRIVERS_INTEL_PMC
47 select EC_GOOGLE_CHROMEEC
48 select EC_GOOGLE_CHROMEEC_ESPI
49 select EC_GOOGLE_CHROMEEC_BOARDID
51 select FW_CONFIG_SOURCE_CHROMEEC_CBI
53 if BOARD_INTEL_MTLRVP_COMMON
56 select GBB_FLAG_FORCE_DEV_BOOT_ALTFW
57 select GBB_FLAG_FORCE_DEV_SWITCH_ON
58 select GBB_FLAG_FORCE_DEV_BOOT_USB
59 select GBB_FLAG_FORCE_MANUAL_RECOVERY
60 select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
61 select HAS_RECOVERY_MRC_CACHE
63 config BOARD_SPECIFIC_OPTIONS
65 select INTEL_LPSS_UART_FOR_CONSOLE
66 select DRIVERS_INTEL_USB4_RETIMER
67 select DRIVERS_WWAN_FM350GL
70 default "intel/mtlrvp"
74 default "mtlrvp_p" if BOARD_INTEL_MTLRVP_P || BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP || BOARD_INTEL_MTLRVP4ES_P_EXT_EC
81 config MAINBOARD_PART_NUMBER
83 default "Mtlrvp_P_Ext_Ec" if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP4ES_P_EXT_EC
84 default "Mtlrvp_P_Mchp" if BOARD_INTEL_MTLRVP_P_MCHP
85 default "Mtlrvp" if BOARD_INTEL_MTLRVP_P
88 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP
89 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
91 config MAINBOARD_FAMILY
93 default "Intel_mtlrvp"
97 default "mtlrvp_p" if BOARD_INTEL_MTLRVP_P
98 default "mtlrvp_p_ext_ec" if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP || BOARD_INTEL_MTLRVP4ES_P_EXT_EC
102 default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
104 config OVERRIDE_DEVICETREE
106 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
113 default MTL_INTEL_EC if BOARD_INTEL_MTLRVP_P
114 default MTL_CHROME_EC if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP4ES_P_EXT_EC
115 default MTL_CHROME_EC_SHARED_SPI if BOARD_INTEL_MTLRVP_P_MCHP
117 This option allows you to select the on board EC to use.
118 Select whether the board has Intel EC or/and Chrome EC
121 bool "Chrome EC with Internal SPI flash"
123 config MTL_CHROME_EC_SHARED_SPI
124 bool "Chrome EC with External Shared SPI flash"
125 select MAINBOARD_USES_IFD_EC_REGION
133 select VBOOT_LID_SWITCH
134 select EC_GOOGLE_CHROMEEC_SWITCHES if MTL_CHROME_EC || MTL_CHROME_EC_SHARED_SPI
136 config UART_FOR_CONSOLE
140 config USE_PM_ACPI_TIMER
143 endif # BOARD_INTEL_MTLRVP_COMMON