aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/l140cu/Kconfig
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-09-23 18:52:15 +0000
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-24 23:35:13 +0000
commit1f4b3cdeb0ed9037005b49a83751617f244232cd (patch)
tree7877fcdff25cb30042be365cfcb3db750956b402 /src/mainboard/clevo/l140cu/Kconfig
parenta25eaffb69e368015e38695a6b68c2172f421e4c (diff)
mb/clevo/l140cu: Make usage of variant mechanism
Clevo mainboards can be grouped by their common platform. Therefore, restructure the mainboard directory as a first step, so that the variant mechanism is used. This moves most of the code into the variant dir, since the L140CU is the only variant at the moment. Change-Id: I9ad1c06f9db854cac1dd420c53dc0c9f010ed716 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45664 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/clevo/l140cu/Kconfig')
-rw-r--r--src/mainboard/clevo/l140cu/Kconfig22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/mainboard/clevo/l140cu/Kconfig b/src/mainboard/clevo/l140cu/Kconfig
index 9012dc6124..c158adddfc 100644
--- a/src/mainboard/clevo/l140cu/Kconfig
+++ b/src/mainboard/clevo/l140cu/Kconfig
@@ -27,19 +27,23 @@ config MAINBOARD_DIR
config MAINBOARD_PART_NUMBER
string
- default "L140CU"
+ default "L140CU" if BOARD_CLEVO_L140CU
config MAINBOARD_SMBIOS_PRODUCT_NAME
string
- default "L140CU"
+ default "L140CU" if BOARD_CLEVO_L140CU
config MAINBOARD_VERSION
string
- default "2.1A"
+ default "2.1A" if BOARD_CLEVO_L140CU
+
+config DEVICETREE
+ string
+ default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb"
config CBFS_SIZE
hex
- default 0xc00000
+ default 0xc00000 if BOARD_CLEVO_L140CU
config CONSOLE_POST
bool
@@ -51,11 +55,11 @@ config UART_FOR_CONSOLE
config MAX_CPUS
int
- default 8
+ default 8 if BOARD_CLEVO_L140CU
config DIMM_MAX
int
- default 2
+ default 2 if BOARD_CLEVO_L140CU
config DIMM_SPD_SIZE
int
@@ -71,10 +75,14 @@ config VGA_BIOS_ID
config TPM_PIRQ
hex
- default 0x10 # GPP_A7/PIRQA#
+ default 0x10 if BOARD_CLEVO_L140CU # GPP_A7/PIRQA#
config POST_DEVICE
bool
default n
+config VARIANT_DIR
+ string
+ default "l140cu" if BOARD_CLEVO_L140CU
+
endif