summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/haswell/Kconfig
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-04-09 05:44:39 +0200
committerFelix Singer <felixsinger@posteo.net>2022-07-10 23:38:16 +0000
commitc2d1588623b0196b86c25f700d6d0c39cd550be2 (patch)
tree763a9070ffe4068920c1dc3dc92dccdc45df93e7 /src/mainboard/lenovo/haswell/Kconfig
parent851435e3792f8381a64aa6815e879b2503834e5a (diff)
mb/lenovo/haswell: Convert to variant setup
In preparation to CB:63514, make use of the variant concept and convert the existing T440p mainboard into a variant. Change-Id: I3c7e06607135ce0a62c158e296b51e5311234505 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63513 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/lenovo/haswell/Kconfig')
-rw-r--r--src/mainboard/lenovo/haswell/Kconfig19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mainboard/lenovo/haswell/Kconfig b/src/mainboard/lenovo/haswell/Kconfig
index 126e92da88..71d30f2778 100644
--- a/src/mainboard/lenovo/haswell/Kconfig
+++ b/src/mainboard/lenovo/haswell/Kconfig
@@ -1,7 +1,5 @@
-if BOARD_LENOVO_THINKPAD_T440P
-
-config BOARD_SPECIFIC_OPTIONS
- def_bool y
+config BOARD_LENOVO_HASWELL_COMMON
+ def_bool n
select BOARD_ROMSIZE_KB_12288
select EC_LENOVO_H8
select EC_LENOVO_PMH7
@@ -23,6 +21,11 @@ config BOARD_SPECIFIC_OPTIONS
select SOUTHBRIDGE_INTEL_LYNXPOINT
select SYSTEM_TYPE_LAPTOP
+config BOARD_LENOVO_THINKPAD_T440P
+ select BOARD_LENOVO_HASWELL_COMMON
+
+if BOARD_LENOVO_HASWELL_COMMON
+
config VBOOT
select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
select GBB_FLAG_DISABLE_FWMP
@@ -38,6 +41,12 @@ config VBOOT_VBNV_OFFSET
hex
default 0x2a
+config VARIANT_DIR
+ default "t440p" if BOARD_LENOVO_THINKPAD_T440P
+
+config DEVICETREE
+ default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
+
config FMDFILE
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab.fmd" if VBOOT
@@ -45,7 +54,7 @@ config MAINBOARD_DIR
default "lenovo/haswell"
config MAINBOARD_PART_NUMBER
- default "ThinkPad T440p"
+ default "ThinkPad T440p" if BOARD_LENOVO_THINKPAD_T440P
config VGA_BIOS_ID
string