mb/asus/p8z77-v_lx2: Transform into variant setup

Get ready to squash all Asus Z77 boards together, so as to factor out
some redundant code.

Tested with BUILD_TIMELESS=1, coreboot.rom for the Asus P8Z77-V LX2
remains identical when not adding the .config file in it.

Change-Id: I701ec4adbc65732ffc0a60d311bf07bf7f414ebf
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54409
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Angel Pons 2021-05-17 17:45:54 +02:00 committed by Patrick Georgi
parent ee5b24d232
commit 81c2e02bb4
22 changed files with 61 additions and 40 deletions

View File

@ -201,10 +201,10 @@ M: Vlado Cibic <vladocb@protonmail.com>
S: Maintained
F: src/mainboard/asus/p8z77-m_pro/
ASUS P8Z77-V LX2 MAINBOARD
ASUS P8Z77 SERIES MAINBOARDS
M: Angel Pons <th3fanbus@gmail.com>
S: Maintained
F: src/mainboard/asus/p8z77-v_lx2/
F: src/mainboard/asus/p8z77-series/

View File

@ -0,0 +1,39 @@
## SPDX-License-Identifier: GPL-2.0-only
config BOARD_ASUS_P8Z77_SERIES
bool
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select MAINBOARD_HAS_LIBGFXINIT
select NORTHBRIDGE_INTEL_SANDYBRIDGE
select SERIRQ_CONTINUOUS_MODE
select SOUTHBRIDGE_INTEL_C216
if BOARD_ASUS_P8Z77_SERIES
config MAINBOARD_DIR
string
default "asus/p8z77-series"
config VARIANT_DIR
string
default "p8z77-v_lx2" if BOARD_ASUS_P8Z77_V_LX2
config MAINBOARD_PART_NUMBER
string
default "P8Z77-V LX2" if BOARD_ASUS_P8Z77_V_LX2
config DEVICETREE
string
default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
config CMOS_DEFAULT_FILE
default "src/mainboard/\$(MAINBOARDDIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.default"
config CMOS_LAYOUT_FILE
default "src/mainboard/\$(MAINBOARDDIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout"
endif

View File

@ -0,0 +1,7 @@
config BOARD_ASUS_P8Z77_V_LX2
bool "P8Z77-V LX2"
select BOARD_ASUS_P8Z77_SERIES
select BOARD_ROMSIZE_KB_8192
select REALTEK_8168_RESET
select SUPERIO_NUVOTON_NCT6779D
select USE_NATIVE_RAMINIT

View File

@ -0,0 +1,8 @@
## SPDX-License-Identifier: GPL-2.0-only
bootblock-y += variants/$(VARIANT_DIR)/early_init.c
romstage-y += variants/$(VARIANT_DIR)/early_init.c
bootblock-y += variants/$(VARIANT_DIR)/gpio.c
romstage-y += variants/$(VARIANT_DIR)/gpio.c
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads

View File

@ -0,0 +1,5 @@
Category: desktop
ROM package: DIP-8
ROM protocol: SPI
ROM socketed: y
Flashrom support: y

View File

@ -1,29 +0,0 @@
## SPDX-License-Identifier: GPL-2.0-only
if BOARD_ASUS_P8Z77_V_LX2
config BOARD_SPECIFIC_OPTIONS
def_bool y
select BOARD_ROMSIZE_KB_8192
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
select MAINBOARD_HAS_LIBGFXINIT
select NORTHBRIDGE_INTEL_SANDYBRIDGE
select REALTEK_8168_RESET
select SERIRQ_CONTINUOUS_MODE
select SOUTHBRIDGE_INTEL_C216
select SUPERIO_NUVOTON_NCT6779D
select USE_NATIVE_RAMINIT
config MAINBOARD_DIR
string
default "asus/p8z77-v_lx2"
config MAINBOARD_PART_NUMBER
string
default "P8Z77-V LX2"
endif

View File

@ -1,2 +0,0 @@
config BOARD_ASUS_P8Z77_V_LX2
bool "P8Z77-V LX2"

View File

@ -1,7 +0,0 @@
bootblock-y += early_init.c
bootblock-y += gpio.c
romstage-y += early_init.c
romstage-y += gpio.c
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads