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

config BOARD_PURISM_BASEBOARD_LIBREM_BDW
	def_bool n
	select SYSTEM_TYPE_LAPTOP
	select BOARD_ROMSIZE_KB_8192
	select HAVE_ACPI_RESUME
	select HAVE_ACPI_TABLES
	select INTEL_GMA_HAVE_VBT
	select INTEL_INT15
	select MAINBOARD_HAS_LIBGFXINIT
	select MAINBOARD_HAS_TPM1
	select SOC_INTEL_BROADWELL

config BOARD_PURISM_LIBREM13_V1
	select BOARD_PURISM_BASEBOARD_LIBREM_BDW

config BOARD_PURISM_LIBREM15_V2
	select BOARD_PURISM_BASEBOARD_LIBREM_BDW

if BOARD_PURISM_BASEBOARD_LIBREM_BDW

config VARIANT_DIR
	default "librem13v1" if BOARD_PURISM_LIBREM13_V1
	default "librem15v2" if BOARD_PURISM_LIBREM15_V2

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

config DRIVERS_UART_8250IO
	def_bool n
	help
	  This platform does not have any way to get standard
	  serial output so disable it by default.

config PCIEXP_L1_SUB_STATE
	def_bool n

config PCIEXP_AER
	def_bool n

config MAINBOARD_DIR
	default "purism/librem_bdw"

config MAINBOARD_PART_NUMBER
	default "Librem 13 v1" if BOARD_PURISM_LIBREM13_V1
	default "Librem 15 v2" if BOARD_PURISM_LIBREM15_V2

config MAINBOARD_FAMILY
	string
	default "Librem 13" if BOARD_PURISM_LIBREM13_V1
	default "Librem 15" if BOARD_PURISM_LIBREM15_V2

config MAINBOARD_VERSION
	string
	default "1.0" if BOARD_PURISM_LIBREM13_V1
	default "2.0" if BOARD_PURISM_LIBREM15_V2

config PRE_GRAPHICS_DELAY_MS
	int
	default 50

config VGA_BIOS_ID
	string
	default "8086,1616" if BOARD_PURISM_LIBREM13_V1
	default "8086,162b" if BOARD_PURISM_LIBREM15_V2

# Override the default variant behavior, since the data.vbt is the same
# for both variants.
config INTEL_GMA_VBT_FILE
	default "src/mainboard/\$(MAINBOARDDIR)/data.vbt"

# This platform has limited means to display POST codes
config NO_POST
	default y

endif