From c4d110afde42c278202f12c553936431000a356f Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Fri, 2 Jul 2021 07:13:54 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56033 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer --- src/mainboard/siemens/mc_ehl/Kconfig | 20 +++++++++----------- src/mainboard/siemens/mc_ehl/Kconfig.name | 7 +++++-- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'src') 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 -- cgit v1.2.3