mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / starlabs / starbook / Kconfig
blob480cc5cd61f84231a904d5da6f4d7874909f594b
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 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
23         select CRB_TPM
24         select HAVE_INTEL_PTT
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
37         select HAVE_INTEL_PTT
38         select HAVE_SPD_IN_CBFS
39         select CRB_TPM
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
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 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
88 config CCD_PORT
89         int
90         default 6 if BOARD_STARLABS_LABTOP_CML
91         default 4 if BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
92         default 3
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
104         default n
106 config DEVICETREE
107         default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
109 config DIMM_SPD_SIZE
110         default 512
112 config DRIVER_TPM_SPI_CHIP
113         default 2
115 config EC_GPE_SCI
116         default 0x50 if BOARD_STARLABS_LABTOP_KBL || BOARD_STARLABS_LABTOP_CML
117         default 0x6e
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
124         default "597077-3S"
126 config EC_STARLABS_BATTERY_TYPE
127         default "LION"
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
134         string
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
141         default "merlin"
143 config EDK2_BOOTSPLASH_FILE
144         string
145         default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"
147 config FMDFILE
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"
151 config IFD_BIN_PATH
152         string
153         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin"
155 config MAINBOARD_DIR
156         default "starlabs/starbook"
158 config MAINBOARD_FAMILY
159         string
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
174         default "StarBook"
176 config ME_BIN_PATH
177         string
178         default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin"
180 config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
181         default n
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
188         default 2
190 config USE_PM_ACPI_TIMER
191         default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL || BOARD_STARLABS_STARBOOK_RPL
193 config VBOOT
194         select VBOOT_VBNV_FLASH
196 config VARIANT_DIR
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
203 endif