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

config BOARD_GIGABYTE_GA_H61M_SERIES
	def_bool n
	select BOARD_ROMSIZE_KB_4096
	select HAVE_ACPI_RESUME
	select HAVE_ACPI_TABLES
	select INTEL_INT15
	select NORTHBRIDGE_INTEL_SANDYBRIDGE
	select SERIRQ_CONTINUOUS_MODE
	select SOUTHBRIDGE_INTEL_BD82X6X
	select USE_NATIVE_RAMINIT
	select SUPERIO_ITE_IT8728F
	select MAINBOARD_HAS_LIBGFXINIT
	select INTEL_GMA_HAVE_VBT
	select HAVE_OPTION_TABLE
	select HAVE_CMOS_DEFAULT

config BOARD_GIGABYTE_GA_H61M_S2PV
	select BOARD_GIGABYTE_GA_H61M_SERIES

config BOARD_GIGABYTE_GA_H61M_DS2
	select BOARD_GIGABYTE_GA_H61M_SERIES

config BOARD_GIGABYTE_GA_H61M_DS2V
	select BOARD_GIGABYTE_GA_H61M_SERIES
	select NO_UART_ON_SUPERIO

config BOARD_GIGABYTE_GA_H61MA_D3V
	select BOARD_GIGABYTE_GA_H61M_SERIES
	select NO_UART_ON_SUPERIO

if BOARD_GIGABYTE_GA_H61M_SERIES

config MAINBOARD_DIR
	default "gigabyte/ga-h61m-series"

config VARIANT_DIR
	default "ga-h61m-s2pv" if BOARD_GIGABYTE_GA_H61M_S2PV
	default "ga-h61m-ds2v" if BOARD_GIGABYTE_GA_H61M_DS2V
	default "ga-h61ma-d3v" if BOARD_GIGABYTE_GA_H61MA_D3V
	default "ga-h61m-ds2"  if BOARD_GIGABYTE_GA_H61M_DS2

config MAINBOARD_PART_NUMBER
	default "GA-H61M-S2PV" if BOARD_GIGABYTE_GA_H61M_S2PV
	default "GA-H61M-DS2V" if BOARD_GIGABYTE_GA_H61M_DS2V
	default "GA-H61MA-D3V" if BOARD_GIGABYTE_GA_H61MA_D3V
	default "GA-H61M-DS2"  if BOARD_GIGABYTE_GA_H61M_DS2

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

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

config USBDEBUG_HCD_INDEX # Bottom left port seen from rear
	int
	default 2

endif # BOARD_GIGABYTE_GA_H61M_SERIES