mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / lenovo / x230 / Kconfig
blob1d04af9bff440dcec8b3f3a8c905d97f384ef019
1 ## SPDX-License-Identifier: GPL-2.0-only
3 if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230S || BOARD_LENOVO_X230_EDP
5 config BOARD_SPECIFIC_OPTIONS
6         def_bool y
7         select SYSTEM_TYPE_LAPTOP
8         select NORTHBRIDGE_INTEL_SANDYBRIDGE
9         select USE_NATIVE_RAMINIT
10         select SOUTHBRIDGE_INTEL_C216
11         select EC_LENOVO_PMH7
12         select EC_LENOVO_H8
13         select H8_HAS_BAT_THRESHOLDS_IMPL
14         select H8_HAS_PRIMARY_FN_KEYS if BOARD_LENOVO_X230S
15         select NO_UART_ON_SUPERIO
16         select BOARD_ROMSIZE_KB_12288 if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230_EDP
17         select BOARD_ROMSIZE_KB_16384 if BOARD_LENOVO_X230S
18         select HAVE_ACPI_TABLES
19         select HAVE_OPTION_TABLE
20         select HAVE_CMOS_DEFAULT
21         select HAVE_ACPI_RESUME
22         select INTEL_INT15
23         select DRIVERS_RICOH_RCE822
24         select DRIVER_LENOVO_SERIALS
25         select MEMORY_MAPPED_TPM
26         select MAINBOARD_HAS_TPM1 if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230_EDP
27         select MAINBOARD_HAS_LIBGFXINIT
28         select GFX_GMA_PANEL_1_ON_LVDS if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T
29         select INTEL_GMA_HAVE_VBT
30         select MAINBOARD_USES_IFD_GBE_REGION
32         # Workaround for EC/KBC IRQ1.
33         select SERIRQ_CONTINUOUS_MODE
35 config VBOOT
36         select VBOOT_VBNV_FLASH
37         select GBB_FLAG_DISABLE_LID_SHUTDOWN
38         select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC
39         select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
40         select GBB_FLAG_DISABLE_FWMP
41         select HAS_RECOVERY_MRC_CACHE
43 config VBOOT_SLOTS_RW_AB
44         default y
46 config FMDFILE
47         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab.fmd" if VBOOT
49 config MAINBOARD_DIR
50         default "lenovo/x230"
52 config VARIANT_DIR
53         default "x230" if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230_EDP
54         default "x230s" if BOARD_LENOVO_X230S
56 config MAINBOARD_PART_NUMBER
57         default "ThinkPad X230" if BOARD_LENOVO_X230 || BOARD_LENOVO_X230_EDP
58         default "ThinkPad X230t" if BOARD_LENOVO_X230T
59         default "ThinkPad X230s" if BOARD_LENOVO_X230S
61 config OVERRIDE_DEVICETREE
62         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
64 config INTEL_GMA_VBT_FILE
65         default "src/mainboard/\$(MAINBOARDDIR)/variants/x230_edp/data.vbt" if BOARD_LENOVO_X230_EDP
67 config USBDEBUG_HCD_INDEX
68         int
69         default 2
71 config DRAM_RESET_GATE_GPIO
72         int
73         default 10
75 config VGA_BIOS_ID
76         string
77         default "8086,0166"
79 config PS2K_EISAID
80         default "PNP0303"
82 config PS2M_EISAID
83         default "LEN0020"
85 config THINKPADEC_HKEY_EISAID
86         default "LEN0068"
88 endif # BOARD_LENOVO_X230 || BOARD_LENOVO_X230T ||  BOARD_LENOVO_X230S || BOARD_LENOVO_X230_EDP