mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / lenovo / x220 / Kconfig
blobe6a2e6620948c11549de9350c59d61d6b8d5477b
1 ## SPDX-License-Identifier: GPL-2.0-only
3 if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1
5 config BOARD_SPECIFIC_OPTIONS
6         def_bool y
7         select BOARD_ROMSIZE_KB_8192
8         select DRIVERS_RICOH_RCE822
9         select DRIVER_LENOVO_SERIALS
10         select EC_LENOVO_H8
11         select EC_LENOVO_PMH7
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
19         select INTEL_INT15
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
32 config VBOOT
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
41         default y
43 config MAINBOARD_DIR
44         default "lenovo/x220"
46 config VARIANT_DIR
47         default "x220" if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I
48         default "x1" if BOARD_LENOVO_X1
50 config FMDFILE
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
62         int
63         default 2
65 config DRAM_RESET_GATE_GPIO
66         int
67         default 10
69 config VGA_BIOS_ID
70         string
71         default "8086,0116" if BOARD_LENOVO_X220I
72         # FIXME: x1 with i3 cpu may also use "8086,0116"
73         default "8086,0126"
75 config PS2K_EISAID
76         default "PNP0303"
78 config PS2M_EISAID
79         default "LEN0020"
81 endif # BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1