summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-01-03 21:34:26 +0000
committerNico Huber <nico.h@gmx.de>2021-01-05 00:20:15 +0000
commit0ab6f0bd4c6ff0b815ca9ad65a171b6084ee8c87 (patch)
tree36249884a2efcfdbb74eb2d4cace4264ba01af39 /src
parent086f2f68605657ee04f65da5b1099b55b083d71a (diff)
mb/siemens/chili: Rework Kconfig
Rework Kconfig file so that each variant has its own config option with their specific selects / configuration and move common selects to a seperate config option, which is used as base for each variant. Built chili/base with BUILD_TIMELESS=1, coreboot.rom remains the same. Change-Id: I5e2a09db80232457b2f78ad9b100c468d281f753 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49063 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/siemens/chili/Kconfig28
-rw-r--r--src/mainboard/siemens/chili/Kconfig.name2
2 files changed, 20 insertions, 10 deletions
diff --git a/src/mainboard/siemens/chili/Kconfig b/src/mainboard/siemens/chili/Kconfig
index fda571dcfe..a261abcb43 100644
--- a/src/mainboard/siemens/chili/Kconfig
+++ b/src/mainboard/siemens/chili/Kconfig
@@ -1,29 +1,37 @@
# SPDX-License-Identifier: GPL-2.0-only
-if BOARD_SIEMENS_CHILI_BASE || BOARD_SIEMENS_CHILI_CHILI
-
-config BOARD_SPECIFIC_OPTIONS
- def_bool y
+config BOARD_SIEMENS_CHILI_COMMON
+ def_bool n
select BOARD_ROMSIZE_KB_32768
select DRIVERS_I2C_GENERIC
select DRIVERS_I2C_HID
- select DRIVERS_I2C_LM96000 if BOARD_SIEMENS_CHILI_CHILI
- select DRIVERS_UART_8250IO if BOARD_SIEMENS_CHILI_BASE
select EC_ACPI
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT
- select INTEL_LPSS_UART_FOR_CONSOLE if BOARD_SIEMENS_CHILI_CHILI
select MAINBOARD_HAS_LIBGFXINIT
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM2
select MAINBOARD_USES_IFD_GBE_REGION
- select SMBIOS_PROVIDED_BY_MOBO if BOARD_SIEMENS_CHILI_CHILI
select SOC_INTEL_CANNONLAKE_PCH_H
select SOC_INTEL_COFFEELAKE
- select SOC_INTEL_COMMON_BLOCK_HDA_VERB if BOARD_SIEMENS_CHILI_CHILI
- select SECUNET_DMI if BOARD_SIEMENS_CHILI_CHILI
+
+config BOARD_SIEMENS_CHILI_BASE_OPTIONS
+ bool
+ select BOARD_SIEMENS_CHILI_COMMON
+ select DRIVERS_UART_8250IO
+
+config BOARD_SIEMENS_CHILI_CHILI_OPTIONS
+ bool
+ select BOARD_SIEMENS_CHILI_COMMON
+ select DRIVERS_I2C_LM96000
+ select INTEL_LPSS_UART_FOR_CONSOLE
+ select SECUNET_DMI
+ select SMBIOS_PROVIDED_BY_MOBO
+ select SOC_INTEL_COMMON_BLOCK_HDA_VERB
+
+if BOARD_SIEMENS_CHILI_COMMON
config MAINBOARD_DIR
string
diff --git a/src/mainboard/siemens/chili/Kconfig.name b/src/mainboard/siemens/chili/Kconfig.name
index ac4e31eef4..1c8dab5f7f 100644
--- a/src/mainboard/siemens/chili/Kconfig.name
+++ b/src/mainboard/siemens/chili/Kconfig.name
@@ -4,6 +4,8 @@ comment "CHILI"
config BOARD_SIEMENS_CHILI_BASE
bool "-> Base board"
+ select BOARD_SIEMENS_CHILI_BASE_OPTIONS
config BOARD_SIEMENS_CHILI_CHILI
bool "-> Chili (AiO)"
+ select BOARD_SIEMENS_CHILI_CHILI_OPTIONS