1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_STARLABS_STARBOOK_SERIES
5 select DRIVERS_EFI_VARIABLE_STORE
6 select DRIVERS_OPTION_CFR
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
26 select HAVE_SPD_IN_CBFS
27 select MAINBOARD_HAS_LIBGFXINIT
28 select SOC_INTEL_KABYLAKE
29 select SPI_FLASH_GIGADEVICE
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
42 select HAVE_SPD_IN_CBFS
44 select MAINBOARD_HAS_LIBGFXINIT
45 select SOC_INTEL_COMETLAKE_1
46 select SPI_FLASH_WINBOND
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
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
130 default 6 if BOARD_STARLABS_LABTOP_CML
131 default 3 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_STARBOOK_TGL
134 config CONSOLE_SERIAL
135 default n if !EDK2_DEBUG
137 config D3COLD_SUPPORT
141 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
146 config DRIVER_TPM_SPI_CHIP
150 default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
153 config EC_STARLABS_BATTERY_MODEL
154 default "AEC3987118-2S1P" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
157 config EC_STARLABS_BATTERY_TYPE
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
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
174 config EDK2_BOOTSPLASH_FILE
176 default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
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"
184 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
187 default "starlabs/starbook"
189 config MAINBOARD_FAMILY
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
212 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
214 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
217 config SOC_INTEL_CSE_SEND_EOP_EARLY
220 config UART_FOR_CONSOLE
221 default 2 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML || BOARD_STARLABS_STARBOOK_TGL
224 config USE_PM_ACPI_TIMER
228 select VBOOT_VBNV_FLASH
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