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 NO_UART_ON_SUPERIO
15 select SOC_INTEL_COMMON_BLOCK_HDA_VERB
16 select SYSTEM_TYPE_LAPTOP
17 select VALIDATE_INTEL_DESCRIPTOR
19 config BOARD_STARLABS_LABTOP_KBL
20 select BOARD_ROMSIZE_KB_8192
21 select BOARD_STARLABS_STARBOOK_SERIES
24 select HAVE_SPD_IN_CBFS
25 select MAINBOARD_HAS_LIBGFXINIT
26 select SOC_INTEL_KABYLAKE
27 select SPI_FLASH_GIGADEVICE
29 config BOARD_STARLABS_LABTOP_CML
30 select BOARD_ROMSIZE_KB_16384
31 select BOARD_STARLABS_STARBOOK_SERIES
32 select EC_STARLABS_KBL_LEVELS
33 select EC_STARLABS_MAX_CHARGE
34 select EC_STARLABS_MERLIN
35 select EC_STARLABS_NEED_ITE_BIN
37 select HAVE_SPD_IN_CBFS
39 select MAINBOARD_HAS_LIBGFXINIT
40 select SOC_INTEL_COMETLAKE_1
41 select SPI_FLASH_WINBOND
43 config BOARD_STARLABS_STARBOOK_TGL
44 select BOARD_ROMSIZE_KB_16384
45 select BOARD_STARLABS_STARBOOK_SERIES
46 select DRIVERS_INTEL_PMC
47 select DRIVERS_INTEL_USB4_RETIMER
48 select EC_STARLABS_KBL_LEVELS
49 select EC_STARLABS_MAX_CHARGE
50 select EC_STARLABS_MERLIN
51 select EC_STARLABS_NEED_ITE_BIN
52 select MAINBOARD_HAS_TPM2
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 MAINBOARD_HAS_TPM2
70 select MEMORY_MAPPED_TPM
71 select SOC_INTEL_ALDERLAKE
72 select SOC_INTEL_ALDERLAKE_PCH_P
73 select SOC_INTEL_CRASHLOG
74 select SPI_FLASH_WINBOND
75 select TPM_MEASURED_BOOT
77 config BOARD_STARLABS_STARBOOK_ADL
78 select BOARD_STARLABS_STARBOOK_ADL_COMMON
80 config BOARD_STARLABS_STARBOOK_RPL
81 select BOARD_STARLABS_STARBOOK_ADL_COMMON
82 select DRIVERS_INTEL_USB4_RETIMER
83 select SOC_INTEL_COMMON_BLOCK_TCSS
84 select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
85 select SOC_INTEL_RAPTORLAKE
87 if BOARD_STARLABS_STARBOOK_SERIES
91 default 6 if BOARD_STARLABS_LABTOP_CML
92 default 4 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
95 config CMOS_DEFAULT_FILE
96 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.default" if BOARD_STARLABS_STARBOOK_TGL
98 config CMOS_LAYOUT_FILE
99 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL
101 config CONSOLE_SERIAL
102 default n if !EDK2_DEBUG
104 config D3COLD_SUPPORT
108 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
113 config DRIVER_TPM_SPI_CHIP
117 default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
120 config EC_STARLABS_ADD_ITE_BIN
121 default y if !BOARD_STARLABS_STARBOOK_RPL
123 config EC_STARLABS_BATTERY_MODEL
124 default "AEC3987118-2S1P" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
127 config EC_STARLABS_BATTERY_TYPE
130 config EC_STARLABS_BATTERY_OEM
131 default "Apower Electronics" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
132 default "GanfengLiEnergy"
134 config EC_STARLABS_ITE_BIN_PATH
136 depends on EC_STARLABS_NEED_ITE_BIN
137 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/ec.bin"
139 config EC_VARIANT_DIR
140 default "kbl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_KBL
141 default "cml" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_CML
144 config EDK2_BOOTSPLASH_FILE
146 default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
149 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/vboot.fmd" if VBOOT
150 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/board.fmd"
154 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
157 default "starlabs/starbook"
159 config MAINBOARD_FAMILY
161 default "L3" if BOARD_STARLABS_LABTOP_KBL
162 default "L4" if BOARD_STARLABS_LABTOP_CML
163 default "B5" if BOARD_STARLABS_STARBOOK_TGL
164 default "B6-I" if BOARD_STARLABS_STARBOOK_ADL
165 default "B62-I" if BOARD_STARLABS_STARBOOK_RPL
167 config MAINBOARD_PART_NUMBER
168 default "LabTop Mk III" if BOARD_STARLABS_LABTOP_KBL
169 default "LabTop Mk IV" if BOARD_STARLABS_LABTOP_CML
170 default "StarBook Mk V" if BOARD_STARLABS_STARBOOK_TGL
171 default "StarBook Mk VI" if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
173 config MAINBOARD_SMBIOS_PRODUCT_NAME
174 default "LabTop" if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
179 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
181 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
184 config SOC_INTEL_CSE_SEND_EOP_EARLY
185 default n if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
187 config UART_FOR_CONSOLE
188 default 0 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
191 config USE_PM_ACPI_TIMER
192 default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
195 select VBOOT_VBNV_FLASH
198 default "kbl" if BOARD_STARLABS_LABTOP_KBL
199 default "cml" if BOARD_STARLABS_LABTOP_CML
200 default "tgl" if BOARD_STARLABS_STARBOOK_TGL
201 default "adl" if BOARD_STARLABS_STARBOOK_ADL
202 default "rpl" if BOARD_STARLABS_STARBOOK_RPL