mb/asus/p8h61-m_lx3_r2_0: Transform into variant setup
Get ready to squash all Asus H61 boards together, so as to factor out lots of redundant code. Tested with BUILD_TIMELESS=1, coreboot.rom for the Asus P8H61-M LX3 R2.0 remains identical when not adding the .config file in it. Change-Id: I738197bf4d5ea8b879ae26ecbcb0cf3714316662 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54372 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
de649bc01d
commit
e94cda578c
10
MAINTAINERS
10
MAINTAINERS
|
@ -174,6 +174,11 @@ M: Mike Banon <mikebdp2@gmail.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: src/mainboard/asus/am1i-a/
|
F: src/mainboard/asus/am1i-a/
|
||||||
|
|
||||||
|
ASUS H61 SERIES MAINBOARDS
|
||||||
|
M: Angel Pons <th3fanbus@gmail.com>
|
||||||
|
S: Maintained
|
||||||
|
F: src/mainboard/asus/h61-series/
|
||||||
|
|
||||||
ASUS MAXIMUS IV GENE-Z MAINBOARD
|
ASUS MAXIMUS IV GENE-Z MAINBOARD
|
||||||
M: Tristan Corrick <tristan@corrick.kiwi>
|
M: Tristan Corrick <tristan@corrick.kiwi>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
@ -195,11 +200,6 @@ M: Tristan Corrick <tristan@corrick.kiwi>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: src/mainboard/asus/p8h61-m_lx/
|
F: src/mainboard/asus/p8h61-m_lx/
|
||||||
|
|
||||||
ASUS P8H61-M LX3 R2.0 MAINBOARD
|
|
||||||
M: Angel Pons <th3fanbus@gmail.com>
|
|
||||||
S: Maintained
|
|
||||||
F: src/mainboard/asus/p8h61-m_lx3_r2_0/
|
|
||||||
|
|
||||||
ASUS P8H61-M PRO MAINBOARD
|
ASUS P8H61-M PRO MAINBOARD
|
||||||
M: Angel Pons <th3fanbus@gmail.com>
|
M: Angel Pons <th3fanbus@gmail.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
|
@ -1,29 +1,32 @@
|
||||||
## SPDX-License-Identifier: GPL-2.0-only
|
## SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
if BOARD_ASUS_P8H61_M_LX3_R2_0
|
config BOARD_ASUS_H61_SERIES
|
||||||
|
bool
|
||||||
config BOARD_SPECIFIC_OPTIONS
|
|
||||||
def_bool y
|
|
||||||
select BOARD_ROMSIZE_KB_8192
|
|
||||||
select HAVE_ACPI_RESUME
|
select HAVE_ACPI_RESUME
|
||||||
select HAVE_ACPI_TABLES
|
select HAVE_ACPI_TABLES
|
||||||
select INTEL_GMA_HAVE_VBT
|
select INTEL_GMA_HAVE_VBT
|
||||||
select MAINBOARD_HAS_LIBGFXINIT
|
select MAINBOARD_HAS_LIBGFXINIT
|
||||||
select NO_UART_ON_SUPERIO
|
|
||||||
select NORTHBRIDGE_INTEL_SANDYBRIDGE
|
select NORTHBRIDGE_INTEL_SANDYBRIDGE
|
||||||
select REALTEK_8168_RESET
|
|
||||||
select RT8168_SET_LED_MODE
|
|
||||||
select SERIRQ_CONTINUOUS_MODE
|
select SERIRQ_CONTINUOUS_MODE
|
||||||
select SOUTHBRIDGE_INTEL_BD82X6X
|
select SOUTHBRIDGE_INTEL_BD82X6X
|
||||||
select SUPERIO_NUVOTON_NCT6779D
|
|
||||||
select USE_NATIVE_RAMINIT
|
select USE_NATIVE_RAMINIT
|
||||||
|
|
||||||
|
if BOARD_ASUS_H61_SERIES
|
||||||
|
|
||||||
config MAINBOARD_DIR
|
config MAINBOARD_DIR
|
||||||
string
|
string
|
||||||
default "asus/p8h61-m_lx3_r2_0"
|
default "asus/h61-series"
|
||||||
|
|
||||||
|
config VARIANT_DIR
|
||||||
|
string
|
||||||
|
default "p8h61-m_lx3_r2_0" if BOARD_ASUS_P8H61_M_LX3_R2_0
|
||||||
|
|
||||||
config MAINBOARD_PART_NUMBER
|
config MAINBOARD_PART_NUMBER
|
||||||
string
|
string
|
||||||
default "P8H61-M LX3 R2.0"
|
default "P8H61-M LX3 R2.0" if BOARD_ASUS_P8H61_M_LX3_R2_0
|
||||||
|
|
||||||
|
config DEVICETREE
|
||||||
|
string
|
||||||
|
default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
|
||||||
|
|
||||||
endif
|
endif
|
|
@ -0,0 +1,8 @@
|
||||||
|
config BOARD_ASUS_P8H61_M_LX3_R2_0
|
||||||
|
bool "P8H61-M LX3 R2.0"
|
||||||
|
select BOARD_ASUS_H61_SERIES
|
||||||
|
select BOARD_ROMSIZE_KB_8192
|
||||||
|
select NO_UART_ON_SUPERIO
|
||||||
|
select REALTEK_8168_RESET
|
||||||
|
select RT8168_SET_LED_MODE
|
||||||
|
select SUPERIO_NUVOTON_NCT6779D
|
|
@ -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
|
|
@ -0,0 +1,5 @@
|
||||||
|
Category: desktop
|
||||||
|
ROM package: DIP-8
|
||||||
|
ROM protocol: SPI
|
||||||
|
ROM socketed: y
|
||||||
|
Flashrom support: y
|
|
@ -1,2 +0,0 @@
|
||||||
config BOARD_ASUS_P8H61_M_LX3_R2_0
|
|
||||||
bool "P8H61-M LX3 R2.0"
|
|
|
@ -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
|
|
Loading…
Reference in New Issue