cpu/intel: Add socket types
[coreboot2.git] / src / mainboard / intel / mtlrvp / Kconfig
blob84ebade105a92adcb9c3d00205b640874550e81c
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_INTEL_MTLRVP_COMMON
4         def_bool n
5         select BOARD_ROMSIZE_KB_32768
6         select CPU_INTEL_SOCKET_OTHER
7         select DRIVERS_GENERIC_MAX98357A
8         select DRIVERS_I2C_GENERIC
9         select DRIVERS_I2C_HID
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
43         def_bool n
44         select BOARD_INTEL_MTLRVP_COMMON
45         select DRIVERS_INTEL_PMC
46         select EC_ACPI
47         select EC_GOOGLE_CHROMEEC
48         select EC_GOOGLE_CHROMEEC_ESPI
49         select EC_GOOGLE_CHROMEEC_BOARDID
50         select FW_CONFIG
51         select FW_CONFIG_SOURCE_CHROMEEC_CBI
53 if BOARD_INTEL_MTLRVP_COMMON
55 config CHROMEOS
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
64         def_bool y
65         select INTEL_LPSS_UART_FOR_CONSOLE
66         select DRIVERS_INTEL_USB4_RETIMER
67         select DRIVERS_WWAN_FM350GL
69 config MAINBOARD_DIR
70         default "intel/mtlrvp"
72 config BASEBOARD_DIR
73         string
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
76 config GBB_HWID
77         string
78         depends on CHROMEOS
79         default "MTLRVP"
81 config MAINBOARD_PART_NUMBER
82         string
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
87 config FMDFILE
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
92         string
93         default "Intel_mtlrvp"
95 config VARIANT_DIR
96         string
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
100 config DEVICETREE
101         string
102         default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
104 config OVERRIDE_DEVICETREE
105         string
106         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
108 config DIMM_SPD_SIZE
109         default 512
111 choice
112         prompt "ON BOARD EC"
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
116         help
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
120 config MTL_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
127 config MTL_INTEL_EC
128         bool "Intel EC"
129         select EC_ACPI
130 endchoice
132 config VBOOT
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
137         int
138         default 0
140 config USE_PM_ACPI_TIMER
141         default n
143 endif # BOARD_INTEL_MTLRVP_COMMON