summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2021-07-02 07:13:54 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-05 10:53:16 +0000
commitc4d110afde42c278202f12c553936431000a356f (patch)
treefb120a1322e3a60be2f9023ee7690ddca02b93a7 /src
parente5a1fc788f3e22eaa82878f0a85f27663c875895 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/siemens/mc_ehl/Kconfig20
-rw-r--r--src/mainboard/siemens/mc_ehl/Kconfig.name7
2 files changed, 14 insertions, 13 deletions
diff --git a/src/mainboard/siemens/mc_ehl/Kconfig b/src/mainboard/siemens/mc_ehl/Kconfig
index c2eb56eeac..b5a5a907fe 100644
--- a/src/mainboard/siemens/mc_ehl/Kconfig
+++ b/src/mainboard/siemens/mc_ehl/Kconfig
@@ -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
diff --git a/src/mainboard/siemens/mc_ehl/Kconfig.name b/src/mainboard/siemens/mc_ehl/Kconfig.name
index 0560d394be..e38e1e4046 100644
--- a/src/mainboard/siemens/mc_ehl/Kconfig.name
+++ b/src/mainboard/siemens/mc_ehl/Kconfig.name
@@ -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