1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_LENOVO_HASWELL_COMMON
5 select BOARD_ROMSIZE_KB_12288
8 select H8_HAS_BAT_THRESHOLDS_IMPL
10 select H8_HAS_PRIMARY_FN_KEYS
11 select HAVE_ACPI_RESUME
12 select HAVE_ACPI_TABLES
13 select HAVE_CMOS_DEFAULT
14 select HAVE_OPTION_TABLE
15 select INTEL_GMA_HAVE_VBT
16 select MAINBOARD_HAS_LIBGFXINIT
17 select MAINBOARD_HAS_TPM1
18 select MAINBOARD_USES_IFD_GBE_REGION
19 select MEMORY_MAPPED_TPM
20 select NORTHBRIDGE_INTEL_HASWELL
21 select NO_UART_ON_SUPERIO
22 select SERIRQ_CONTINUOUS_MODE
23 select SOUTHBRIDGE_INTEL_LYNXPOINT
24 select SYSTEM_TYPE_LAPTOP
26 config BOARD_LENOVO_THINKPAD_T440P
27 select BOARD_LENOVO_HASWELL_COMMON
30 config BOARD_LENOVO_THINKPAD_W541
31 select BOARD_LENOVO_HASWELL_COMMON
33 if BOARD_LENOVO_HASWELL_COMMON
36 select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
37 select GBB_FLAG_DISABLE_FWMP
38 select GBB_FLAG_DISABLE_LID_SHUTDOWN
39 select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
40 select HAS_RECOVERY_MRC_CACHE
41 select VBOOT_VBNV_FLASH
43 config VBOOT_SLOTS_RW_AB
47 default "t440p" if BOARD_LENOVO_THINKPAD_T440P
48 default "w541" if BOARD_LENOVO_THINKPAD_W541
51 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
54 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab.fmd" if VBOOT
57 default "lenovo/haswell"
59 config MAINBOARD_PART_NUMBER
60 default "ThinkPad T440p" if BOARD_LENOVO_THINKPAD_T440P
61 default "ThinkPad W541" if BOARD_LENOVO_THINKPAD_W541
63 config ONBOARD_VGA_IS_PRIMARY
69 default "8086,0416" if BOARD_LENOVO_THINKPAD_T440P
71 config USBDEBUG_HCD_INDEX
79 default "LEN0036" if BOARD_LENOVO_THINKPAD_T440P
80 default "LEN004A" if BOARD_LENOVO_THINKPAD_W541
82 config THINKPADEC_HKEY_EISAID
85 config GFX_GMA_PANEL_1_PORT
86 default "DP3" if BOARD_LENOVO_THINKPAD_W541