1 ## SPDX-License-Identifier: GPL-2.0-only
3 if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1
5 config BOARD_SPECIFIC_OPTIONS
7 select BOARD_ROMSIZE_KB_8192
8 select DRIVERS_RICOH_RCE822
9 select DRIVER_LENOVO_SERIALS
12 select GFX_GMA_PANEL_1_ON_LVDS
13 select H8_HAS_BAT_THRESHOLDS_IMPL
14 select HAVE_ACPI_RESUME
15 select HAVE_ACPI_TABLES
16 select HAVE_CMOS_DEFAULT
17 select HAVE_OPTION_TABLE
18 select INTEL_GMA_HAVE_VBT
20 select MAINBOARD_HAS_LIBGFXINIT
21 select MAINBOARD_HAS_TPM1
22 select MAINBOARD_USES_IFD_GBE_REGION
23 select MEMORY_MAPPED_TPM
24 select NO_UART_ON_SUPERIO
25 select NORTHBRIDGE_INTEL_SANDYBRIDGE
26 # Workaround for EC/KBC IRQ1.
27 select SERIRQ_CONTINUOUS_MODE
28 select SOUTHBRIDGE_INTEL_C216
29 select SYSTEM_TYPE_LAPTOP
33 select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
34 select GBB_FLAG_DISABLE_FWMP
35 select GBB_FLAG_DISABLE_LID_SHUTDOWN
36 select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
37 select HAS_RECOVERY_MRC_CACHE
38 select VBOOT_VBNV_FLASH
40 config VBOOT_SLOTS_RW_A
47 default "x220" if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I
48 default "x1" if BOARD_LENOVO_X1
51 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwa.fmd" if VBOOT
53 config MAINBOARD_PART_NUMBER
54 default "ThinkPad X220" if BOARD_LENOVO_X220
55 default "ThinkPad X220i" if BOARD_LENOVO_X220I
56 default "ThinkPad X1" if BOARD_LENOVO_X1
58 config OVERRIDE_DEVICETREE
59 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
61 config USBDEBUG_HCD_INDEX
65 config DRAM_RESET_GATE_GPIO
71 default "8086,0116" if BOARD_LENOVO_X220I
72 # FIXME: x1 with i3 cpu may also use "8086,0116"
81 endif # BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1