mb/google/fatcat/var/felino: Modify the felino config for probing TPM I2C
[coreboot2.git] / src / mainboard / starlabs / starbook / Kconfig
blobe5ceb0871fb7b60009c9b25f2239725e4520c99f
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_STARLABS_STARBOOK_SERIES
4         def_bool n
5         select DRIVERS_EFI_VARIABLE_STORE
6         select DRIVERS_OPTION_CFR
7         select DRIVERS_I2C_HID
8         select EC_STARLABS_ITE
9         select EC_STARLABS_FAN
10         select HAVE_ACPI_RESUME
11         select HAVE_ACPI_TABLES
12         select HAVE_CMOS_DEFAULT
13         select HAVE_OPTION_TABLE
14         select INTEL_GMA_HAVE_VBT
15         select INTEL_LPSS_UART_FOR_CONSOLE
16         select NO_UART_ON_SUPERIO
17         select SOC_INTEL_COMMON_BLOCK_HDA_VERB
18         select SYSTEM_TYPE_LAPTOP
19         select VALIDATE_INTEL_DESCRIPTOR
21 config BOARD_STARLABS_LABTOP_KBL
22         select BOARD_ROMSIZE_KB_8192
23         select BOARD_STARLABS_STARBOOK_SERIES
24         select CRB_TPM
25         select HAVE_INTEL_PTT
26         select HAVE_SPD_IN_CBFS
27         select MAINBOARD_HAS_LIBGFXINIT
28         select SOC_INTEL_KABYLAKE
29         select SPI_FLASH_GIGADEVICE
30         select TPM2
32 config BOARD_STARLABS_LABTOP_CML
33         select BOARD_ROMSIZE_KB_16384
34         select BOARD_STARLABS_STARBOOK_SERIES
35         select EC_STARLABS_CHARGING_SPEED
36         select EC_STARLABS_KBL_LEVELS
37         select EC_STARLABS_LID_SWITCH
38         select EC_STARLABS_MAX_CHARGE
39         select EC_STARLABS_MERLIN
40         select EC_STARLABS_NEED_ITE_BIN
41         select HAVE_INTEL_PTT
42         select HAVE_SPD_IN_CBFS
43         select CRB_TPM
44         select MAINBOARD_HAS_LIBGFXINIT
45         select SOC_INTEL_COMETLAKE_1
46         select SPI_FLASH_WINBOND
47         select TPM2
49 config BOARD_STARLABS_STARBOOK_TGL
50         select BOARD_ROMSIZE_KB_16384
51         select BOARD_STARLABS_STARBOOK_SERIES
52         select DRIVERS_INTEL_PMC
53         select DRIVERS_INTEL_USB4_RETIMER
54         select EC_STARLABS_CHARGING_SPEED
55         select EC_STARLABS_KBL_LEVELS
56         select EC_STARLABS_LID_SWITCH
57         select EC_STARLABS_MAX_CHARGE
58         select EC_STARLABS_MERLIN
59         select EC_STARLABS_NEED_ITE_BIN
60         select MAINBOARD_HAS_TPM2
61         select MEMORY_MAPPED_TPM
62         select SOC_INTEL_COMMON_BLOCK_TCSS
63         select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
64         select SOC_INTEL_TIGERLAKE
65         select SPI_FLASH_WINBOND
66         select TPM_MEASURED_BOOT
68 config BOARD_STARLABS_STARBOOK_ADL_COMMON
69         def_bool n
70         select BOARD_STARLABS_STARBOOK_SERIES
71         select DRIVERS_INTEL_PMC
72         select EC_STARLABS_CHARGING_SPEED
73         select EC_STARLABS_KBL_LEVELS
74         select EC_STARLABS_LID_SWITCH
75         select EC_STARLABS_MAX_CHARGE
76         select EC_STARLABS_MERLIN
77         select EC_STARLABS_NEED_ITE_BIN
78         select MAINBOARD_HAS_TPM2
79         select MEMORY_MAPPED_TPM
80         select SOC_INTEL_ALDERLAKE
81         select SOC_INTEL_COMMON_BLOCK_TCSS
82         select SOC_INTEL_CRASHLOG
83         select SPI_FLASH_WINBOND
84         select TPM_MEASURED_BOOT
86 config BOARD_STARLABS_STARBOOK_ADL
87         select BOARD_ROMSIZE_KB_32768
88         select BOARD_STARLABS_STARBOOK_ADL_COMMON
89         select SOC_INTEL_ALDERLAKE_PCH_P
91 config BOARD_STARLABS_STARBOOK_ADL_N
92         select BOARD_ROMSIZE_KB_16384
93         select BOARD_STARLABS_STARBOOK_ADL_COMMON
94         select SOC_INTEL_ALDERLAKE_PCH_N
96 config BOARD_STARLABS_STARBOOK_RPL
97         select BOARD_ROMSIZE_KB_32768
98         select BOARD_STARLABS_STARBOOK_ADL_COMMON
99         select DRIVERS_INTEL_USB4_RETIMER
100         select SOC_INTEL_ALDERLAKE_PCH_P
101         select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
102         select SOC_INTEL_RAPTORLAKE
104 config BOARD_STARLABS_STARBOOK_MTL
105         select BOARD_ROMSIZE_KB_32768
106         select BOARD_STARLABS_STARBOOK_SERIES
107         select DRIVERS_INTEL_PMC
108         select DRIVERS_INTEL_USB4_RETIMER
109         select EC_STARLABS_CHARGING_SPEED
110         select EC_STARLABS_KBL_LEVELS
111         select EC_STARLABS_LID_SWITCH
112         select EC_STARLABS_MAX_CHARGE
113         select EC_STARLABS_MERLIN
114         select EC_STARLABS_NEED_ITE_BIN
115         select MAINBOARD_HAS_TPM2
116         select MEMORY_MAPPED_TPM
117         select SOC_INTEL_COMMON_BLOCK_VTD
118         select SOC_INTEL_METEORLAKE
119         select SOC_INTEL_METEORLAKE_U_H
120         select SOC_INTEL_COMMON_BLOCK_TCSS
121         select SOC_INTEL_CRASHLOG
122         select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
123         select SPI_FLASH_WINBOND
124         select TPM_MEASURED_BOOT
126 if BOARD_STARLABS_STARBOOK_SERIES
128 config CCD_PORT
129         int
130         default 6 if BOARD_STARLABS_LABTOP_CML
131         default 3 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_STARBOOK_TGL
132         default 4
134 config CONSOLE_SERIAL
135         default n if !EDK2_DEBUG
137 config D3COLD_SUPPORT
138         default n
140 config DEVICETREE
141         default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
143 config DIMM_SPD_SIZE
144         default 512
146 config DRIVER_TPM_SPI_CHIP
147         default 2
149 config EC_GPE_SCI
150         default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
151         default 0x6e
153 config EC_STARLABS_BATTERY_MODEL
154         default "AEC3987118-2S1P" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
155         default "597077-3S"
157 config EC_STARLABS_BATTERY_TYPE
158         default "LION"
160 config EC_STARLABS_BATTERY_OEM
161         default "Apower Electronics" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
162         default "GanfengLiEnergy"
164 config EC_STARLABS_ITE_BIN_PATH
165         string
166         depends on EC_STARLABS_NEED_ITE_BIN
167         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/ec.bin"
169 config EC_VARIANT_DIR
170         default "kbl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_KBL
171         default "cml" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_CML
172         default "merlin"
174 config EDK2_BOOTSPLASH_FILE
175         string
176         default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
178 config FMDFILE
179         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/vboot.fmd" if VBOOT
180         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/board.fmd"
182 config IFD_BIN_PATH
183         string
184         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
186 config MAINBOARD_DIR
187         default "starlabs/starbook"
189 config MAINBOARD_FAMILY
190         string
191         default "L3" if BOARD_STARLABS_LABTOP_KBL
192         default "L4" if BOARD_STARLABS_LABTOP_CML
193         default "B5" if BOARD_STARLABS_STARBOOK_TGL
194         default "B6-I" if BOARD_STARLABS_STARBOOK_ADL
195         default "B62-I" if BOARD_STARLABS_STARBOOK_RPL
196         default "B7-N" if BOARD_STARLABS_STARBOOK_ADL_N
197         default "B7-U" if BOARD_STARLABS_STARBOOK_MTL
199 config MAINBOARD_PART_NUMBER
200         default "LabTop Mk III" if BOARD_STARLABS_LABTOP_KBL
201         default "LabTop Mk IV" if BOARD_STARLABS_LABTOP_CML
202         default "StarBook Mk V" if BOARD_STARLABS_STARBOOK_TGL
203         default "StarBook Mk VI" if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
204         default "StarBook Mk VII" if BOARD_STARLABS_STARBOOK_ADL_N || BOARD_STARLABS_STARBOOK_MTL
206 config MAINBOARD_SMBIOS_PRODUCT_NAME
207         default "LabTop" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
208         default "StarBook"
210 config ME_BIN_PATH
211         string
212         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
214 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
215         default n
217 config SOC_INTEL_CSE_SEND_EOP_EARLY
218         default n
220 config UART_FOR_CONSOLE
221         default 2 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML || BOARD_STARLABS_STARBOOK_TGL
222         default 0
224 config USE_PM_ACPI_TIMER
225         default n
227 config VBOOT
228         select VBOOT_VBNV_FLASH
230 config VARIANT_DIR
231         default "kbl" if BOARD_STARLABS_LABTOP_KBL
232         default "cml" if BOARD_STARLABS_LABTOP_CML
233         default "tgl" if BOARD_STARLABS_STARBOOK_TGL
234         default "adl" if BOARD_STARLABS_STARBOOK_ADL
235         default "rpl" if BOARD_STARLABS_STARBOOK_RPL
236         default "adl_n" if BOARD_STARLABS_STARBOOK_ADL_N
237         default "mtl" if BOARD_STARLABS_STARBOOK_MTL
239 endif