mb/siemens/mc_ehl: Provide a proper scheme for variants

There will be more variants of this mainboard so prepare the scheme for
Kconfig to handle the variants properly.

Change-Id: If1cf418836d77a45955ee55d30ba670db8ff2533
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56033
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
This commit is contained in:
Werner Zeh 2021-07-02 07:13:54 +02:00 committed by Patrick Georgi
parent e5a1fc788f
commit c4d110afde
2 changed files with 14 additions and 13 deletions

View File

@ -1,7 +1,5 @@
if BOARD_SIEMENS_MC_EHL
config BOARD_SPECIFIC_OPTIONS
def_bool y
config BOARD_SIEMENS_BASEBOARD_MC_EHL
def_bool n
select BOARD_ROMSIZE_KB_32768
select DRIVERS_I2C_HID
select DRIVERS_INTEL_DPTF
@ -14,21 +12,21 @@ config BOARD_SPECIFIC_OPTIONS
select HAVE_ACPI_TABLES
select SOC_INTEL_ELKHARTLAKE
source "src/mainboard/siemens/mc_ehl/variants/*/Kconfig"
if BOARD_SIEMENS_BASEBOARD_MC_EHL
config MAINBOARD_DIR
string
default "siemens/mc_ehl"
config VARIANT_DIR
string
default "mc_ehl1" if BOARD_SIEMENS_MC_EHL
default "mc_ehl1" if BOARD_SIEMENS_MC_EHL1
config MAINBOARD_PART_NUMBER
string
default "MC EHL"
config MAINBOARD_FAMILY
string
default "Siemens EHL"
default "MC EHL1" if BOARD_SIEMENS_MC_EHL1
config DEVICETREE
string
@ -47,4 +45,4 @@ config UART_FOR_CONSOLE
default 2 if INTEL_LPSS_UART_FOR_CONSOLE
default 0
endif
endif # BOARD_SIEMENS_BASEBOARD_MC_EHL

View File

@ -1,2 +1,5 @@
config BOARD_SIEMENS_MC_EHL
bool "MC EHL"
comment "MC EHLx"
config BOARD_SIEMENS_MC_EHL1
bool "-> MC EHL1"
select BOARD_SIEMENS_BASEBOARD_MC_EHL