## SPDX-License-Identifier: GPL-2.0-only

if VENDOR_STARLABS

config EDK2_BOOTSPLASH_FILE
	string
	default "3rdparty/blobs/mainboard/starlabs/Logo.bmp"

config STARLABS_MEMORY_SETTINGS_VERSION
	bool
	default y if PLATFORM_USES_FSP2_0 && CACHE_MRC_SETTINGS
	select FSP_PLATFORM_MEMORY_SETTINGS_VERSIONS

menu "Star Labs Settings"

config BOOTMEDIA_SMM_BWP
	bool
	default y if SOC_INTEL_COMMON_BLOCK_SMM

config BOOTMEDIA_SMM_BWP_RUNTIME_OPTION
	bool
	depends on BOOTMEDIA_SMM_BWP
	default y if SOC_INTEL_COMMON_BLOCK_SMM

config USE_LEGACY_8254_TIMER
	default n if VENDOR_STARLABS

config USE_PC_CMOS_ALTCENTURY
	default n if VENDOR_STARLABS

config DRIVERS_EFI_FW_INFO
	def_bool y

config STARLABS_COMMON_POWERCAP
	bool
	default y if SOC_INTEL_COMMON_BLOCK_POWER_LIMIT

config STARLABS_COMMON_CFR
	bool
	default y if CPU_INTEL_COMMON

config STARLABS_LEGACY_PL4
	bool

config STARLABS_NVME_POWER_SEQUENCE
	bool "Enable NVMe/M.2 slot power sequence"
	depends on SOC_INTEL_COMMON_BLOCK_GPIO
	default n
	help
	  Enable Fatcat-style 3-stage NVMe/M.2 slot sequencing using PWREN, PERST#
	  and CLKREQ# pads.

	  The sequencing is:
	    1) pre-mem: PERST# asserted; PWREN=0; CLKREQ# disabled
	    2) BS_PRE_DEVICE exit: PERST# still asserted; PWREN=1; CLKREQ# native
	    3) BS_DEV_INIT_CHIPS entry: PERST# deasserted

	  Boards selecting this option must provide their own pad configs and
	  implement stage 1 (pre-mem) in their early pad configuration.

	  For stage 2 and stage 3, boards must either implement the
	  `variant_nvme_power_sequence_*()` helpers or provide pad tables via
	  `variant_nvme_power_sequence_pads()` and
	  `variant_nvme_power_sequence_post_pads()`.

config TCG_OPAL_S3_UNLOCK
	default y

config MB_COMMON_DIR
	string
	default "starlabs/common"

config STARLABS_ACPI_EFI_OPTION_SMI
	bool "Expose coreboot options to ACPI via SMI (UEFI var store)"
	depends on USE_UEFI_VARIABLE_STORE
	depends on HAVE_ACPI_TABLES
	default y
	help
	  Provide ACPI methods that proxy a restricted set of coreboot options
	  (e.g. keyboard backlight and trackpad state) to the UEFI variable
	  store via an SMM APMC SMI handler.

config SOC_INTEL_COMMON_BLOCK_SMM_TCO_INTRUDER_SMI_ENABLE
	default n

source "src/mainboard/starlabs/common/hda/Kconfig"

endmenu

endif
