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

config BOARD_GOOGLE_BASEBOARD_GLADOS
	def_bool n
	select BOARD_ROMSIZE_KB_16384
	select DRIVERS_I2C_GENERIC
	select DRIVERS_I2C_NAU8825
	select EC_GOOGLE_CHROMEEC
	select EC_GOOGLE_CHROMEEC_ACPI_MEMMAP
	select EC_GOOGLE_CHROMEEC_BOARDID
	select EC_GOOGLE_CHROMEEC_LPC
	select EC_GOOGLE_CHROMEEC_MEC
	select EC_GOOGLE_CHROMEEC_PD
	select HAVE_ACPI_RESUME
	select HAVE_ACPI_TABLES
	select HAVE_OPTION_TABLE
	select HAVE_SPD_IN_CBFS
	select INTEL_LPSS_UART_FOR_CONSOLE
	select MAINBOARD_HAS_CHROMEOS
	select MAINBOARD_HAS_LIBGFXINIT
	select MEMORY_MAPPED_TPM
	select MAINBOARD_HAS_TPM1
	select SOC_INTEL_SKYLAKE
	select SYSTEM_TYPE_LAPTOP

config BOARD_GOOGLE_ASUKA
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select DRIVERS_GENERIC_MAX98357A
	select EXCLUDE_NATIVE_SD_INTERFACE
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_MAX98357 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_CAROLINE
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select CHROMEOS_WIFI_SAR if CHROMEOS
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_SSM4567 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_CAVE
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select DRIVERS_GENERIC_MAX98357A
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_MAX98357 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_CHELL
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_SSM4567 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_GLADOS
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select NHLT_DMIC_4CH if INCLUDE_NHLT_BLOBS
	select NHLT_SSM4567 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_LARS
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select DRIVERS_GENERIC_MAX98357A
	select EXCLUDE_NATIVE_SD_INTERFACE
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_MAX98357 if INCLUDE_NHLT_BLOBS

config BOARD_GOOGLE_SENTRY
	select BOARD_GOOGLE_BASEBOARD_GLADOS
	select DRIVERS_GENERIC_MAX98357A
	select INTEL_GMA_HAVE_VBT
	select MAINBOARD_NO_FSP_GOP
	select NHLT_DMIC_4CH if INCLUDE_NHLT_BLOBS
	select NHLT_MAX98357 if INCLUDE_NHLT_BLOBS
	select NHLT_SSM4567 if INCLUDE_NHLT_BLOBS

if BOARD_GOOGLE_BASEBOARD_GLADOS

config CHROMEOS_WIFI_SAR
	bool "Enable SAR options for ChromeOS build"
	depends on CHROMEOS
	select DSAR_ENABLE
	select SAR_ENABLE
	select USE_SAR

config DISABLE_HECI1_AT_PRE_BOOT
	default y

config VBOOT
	select EC_GOOGLE_CHROMEEC_SWITCHES
	select VBOOT_LID_SWITCH

config MAINBOARD_DIR
	default "google/glados"

config MAINBOARD_PART_NUMBER
	default "Asuka" if BOARD_GOOGLE_ASUKA
	default "Caroline" if BOARD_GOOGLE_CAROLINE
	default "Cave" if BOARD_GOOGLE_CAVE
	default "Chell" if BOARD_GOOGLE_CHELL
	default "Glados" if BOARD_GOOGLE_GLADOS
	default "Lars" if BOARD_GOOGLE_LARS
	default "Sentry" if BOARD_GOOGLE_SENTRY

config MAINBOARD_FAMILY
	string
	default "Google_Glados"

config VARIANT_DIR
	default "asuka" if BOARD_GOOGLE_ASUKA
	default "caroline" if BOARD_GOOGLE_CAROLINE
	default "cave" if BOARD_GOOGLE_CAVE
	default "chell" if BOARD_GOOGLE_CHELL
	default "glados" if BOARD_GOOGLE_GLADOS
	default "lars" if BOARD_GOOGLE_LARS
	default "sentry" if BOARD_GOOGLE_SENTRY

config OVERRIDE_DEVICETREE
	default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"

config INCLUDE_NHLT_BLOBS
	bool "Include blobs for audio."
	select NHLT_DMIC_2CH
	select NHLT_NAU88L25

config UART_FOR_CONSOLE
	int
	default 2

config CONSOLE_SERIAL
	bool
	default n

config USE_PM_ACPI_TIMER
	default n

endif