1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_STARLABS_STARBOOK_SERIES
8 select HAVE_ACPI_RESUME
9 select HAVE_ACPI_TABLES
10 select HAVE_CMOS_DEFAULT
11 select HAVE_OPTION_TABLE
12 select INTEL_GMA_HAVE_VBT
13 select INTEL_LPSS_UART_FOR_CONSOLE
14 select MAINBOARD_HAS_TPM2
15 select NO_UART_ON_SUPERIO
16 select SOC_INTEL_COMMON_BLOCK_HDA_VERB
17 select SYSTEM_TYPE_LAPTOP
18 select VALIDATE_INTEL_DESCRIPTOR
20 config BOARD_STARLABS_LABTOP_KBL
21 select BOARD_ROMSIZE_KB_8192
22 select BOARD_STARLABS_STARBOOK_SERIES
25 select HAVE_SPD_IN_CBFS
26 select MAINBOARD_HAS_LIBGFXINIT
27 select SOC_INTEL_KABYLAKE
28 select SPI_FLASH_GIGADEVICE
30 config BOARD_STARLABS_LABTOP_CML
31 select BOARD_ROMSIZE_KB_16384
32 select BOARD_STARLABS_STARBOOK_SERIES
33 select EC_STARLABS_KBL_LEVELS
34 select EC_STARLABS_MAX_CHARGE
35 select EC_STARLABS_MERLIN
36 select EC_STARLABS_NEED_ITE_BIN
38 select HAVE_SPD_IN_CBFS
40 select MAINBOARD_HAS_LIBGFXINIT
41 select SOC_INTEL_COMETLAKE_1
42 select SPI_FLASH_WINBOND
44 config BOARD_STARLABS_STARBOOK_TGL
45 select BOARD_ROMSIZE_KB_16384
46 select BOARD_STARLABS_STARBOOK_SERIES
47 select DRIVERS_INTEL_PMC
48 select DRIVERS_INTEL_USB4_RETIMER
49 select EC_STARLABS_KBL_LEVELS
50 select EC_STARLABS_MAX_CHARGE
51 select EC_STARLABS_MERLIN
52 select EC_STARLABS_NEED_ITE_BIN
53 select MEMORY_MAPPED_TPM
54 select SOC_INTEL_COMMON_BLOCK_TCSS
55 select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
56 select SOC_INTEL_TIGERLAKE
57 select SPI_FLASH_WINBOND
58 select TPM_MEASURED_BOOT
60 config BOARD_STARLABS_STARBOOK_ADL_COMMON
62 select BOARD_ROMSIZE_KB_32768
63 select BOARD_STARLABS_STARBOOK_SERIES
64 select DRIVERS_INTEL_PMC
65 select EC_STARLABS_KBL_LEVELS
66 select EC_STARLABS_MAX_CHARGE
67 select EC_STARLABS_MERLIN
68 select EC_STARLABS_NEED_ITE_BIN
69 select MEMORY_MAPPED_TPM
70 select SOC_INTEL_ALDERLAKE
71 select SOC_INTEL_ALDERLAKE_PCH_P
72 select SOC_INTEL_CRASHLOG
73 select SPI_FLASH_WINBOND
74 select TPM_MEASURED_BOOT
76 config BOARD_STARLABS_STARBOOK_ADL
77 select BOARD_STARLABS_STARBOOK_ADL_COMMON
79 config BOARD_STARLABS_STARBOOK_RPL
80 select BOARD_STARLABS_STARBOOK_ADL_COMMON
81 select DRIVERS_INTEL_USB4_RETIMER
82 select SOC_INTEL_COMMON_BLOCK_TCSS
83 select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
84 select SOC_INTEL_RAPTORLAKE
86 if BOARD_STARLABS_STARBOOK_SERIES
90 default 6 if BOARD_STARLABS_LABTOP_CML
91 default 4 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
94 config CMOS_DEFAULT_FILE
95 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.default" if BOARD_STARLABS_STARBOOK_TGL
97 config CMOS_LAYOUT_FILE
98 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL
100 config CONSOLE_SERIAL
101 default n if !EDK2_DEBUG
103 config D3COLD_SUPPORT
107 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
112 config DRIVER_TPM_SPI_CHIP
116 default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
119 config EC_STARLABS_ADD_ITE_BIN
120 default y if !BOARD_STARLABS_STARBOOK_RPL
122 config EC_STARLABS_BATTERY_MODEL
123 default "AEC3987118-2S1P" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
126 config EC_STARLABS_BATTERY_TYPE
129 config EC_STARLABS_BATTERY_OEM
130 default "Apower Electronics" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
131 default "GanfengLiEnergy"
133 config EC_STARLABS_ITE_BIN_PATH
135 depends on EC_STARLABS_NEED_ITE_BIN
136 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/ec.bin"
138 config EC_VARIANT_DIR
139 default "kbl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_KBL
140 default "cml" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_CML
143 config EDK2_BOOTSPLASH_FILE
145 default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
148 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/vboot.fmd" if VBOOT
149 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/board.fmd"
153 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
156 default "starlabs/starbook"
158 config MAINBOARD_FAMILY
160 default "L3" if BOARD_STARLABS_LABTOP_KBL
161 default "L4" if BOARD_STARLABS_LABTOP_CML
162 default "B5" if BOARD_STARLABS_STARBOOK_TGL
163 default "B6-I" if BOARD_STARLABS_STARBOOK_ADL
164 default "B62-I" if BOARD_STARLABS_STARBOOK_RPL
166 config MAINBOARD_PART_NUMBER
167 default "LabTop Mk III" if BOARD_STARLABS_LABTOP_KBL
168 default "LabTop Mk IV" if BOARD_STARLABS_LABTOP_CML
169 default "StarBook Mk V" if BOARD_STARLABS_STARBOOK_TGL
170 default "StarBook Mk VI" if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
172 config MAINBOARD_SMBIOS_PRODUCT_NAME
173 default "LabTop" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
178 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
180 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
183 config SOC_INTEL_CSE_SEND_EOP_EARLY
184 default n if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
186 config UART_FOR_CONSOLE
187 default 0 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
190 config USE_PM_ACPI_TIMER
191 default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
194 select VBOOT_VBNV_FLASH
197 default "kbl" if BOARD_STARLABS_LABTOP_KBL
198 default "cml" if BOARD_STARLABS_LABTOP_CML
199 default "tgl" if BOARD_STARLABS_STARBOOK_TGL
200 default "adl" if BOARD_STARLABS_STARBOOK_ADL
201 default "rpl" if BOARD_STARLABS_STARBOOK_RPL