mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / starlabs / starbook / Kconfig
blob6ba3d6ea018173e9a629651f7291995a0a4611cb
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_STARLABS_STARBOOK_SERIES
4         def_bool n
5         select DRIVERS_I2C_HID
6         select EC_STARLABS_ITE
7         select EC_STARLABS_FAN
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
22         select CRB_TPM
23         select HAVE_INTEL_PTT
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
36         select HAVE_INTEL_PTT
37         select HAVE_SPD_IN_CBFS
38         select CRB_TPM
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
61         def_bool n
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
89 config CCD_PORT
90         int
91         default 6 if BOARD_STARLABS_LABTOP_CML
92         default 4 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
93         default 3
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
105         default n
107 config DEVICETREE
108         default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
110 config DIMM_SPD_SIZE
111         default 512
113 config DRIVER_TPM_SPI_CHIP
114         default 2
116 config EC_GPE_SCI
117         default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
118         default 0x6e
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
125         default "597077-3S"
127 config EC_STARLABS_BATTERY_TYPE
128         default "LION"
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
135         string
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
142         default "merlin"
144 config EDK2_BOOTSPLASH_FILE
145         string
146         default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
148 config FMDFILE
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"
152 config IFD_BIN_PATH
153         string
154         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
156 config MAINBOARD_DIR
157         default "starlabs/starbook"
159 config MAINBOARD_FAMILY
160         string
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
175         default "StarBook"
177 config ME_BIN_PATH
178         string
179         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
181 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
182         default n
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
189         default 2
191 config USE_PM_ACPI_TIMER
192         default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
194 config VBOOT
195         select VBOOT_VBNV_FLASH
197 config VARIANT_DIR
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
204 endif