Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 1 | if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230S |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 2 | |
Elyes HAOUAS | f0c5be2 | 2018-11-27 20:36:44 +0100 | [diff] [blame] | 3 | config BOARD_SPECIFIC_OPTIONS |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 4 | def_bool y |
Vladimir Serbinenko | a9db82f | 2014-10-16 13:21:47 +0200 | [diff] [blame] | 5 | select SYSTEM_TYPE_LAPTOP |
Nico Huber | 772a154 | 2019-05-10 16:48:14 +0200 | [diff] [blame] | 6 | select NORTHBRIDGE_INTEL_SANDYBRIDGE |
Vladimir Serbinenko | 144eea0 | 2016-02-10 02:36:04 +0100 | [diff] [blame] | 7 | select USE_NATIVE_RAMINIT |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 8 | select SOUTHBRIDGE_INTEL_C216 |
| 9 | select EC_LENOVO_PMH7 |
| 10 | select EC_LENOVO_H8 |
Peter Lemenkov | b470361 | 2022-05-02 17:47:35 +0200 | [diff] [blame] | 11 | select H8_HAS_BAT_THRESHOLDS_IMPL |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 12 | select H8_HAS_PRIMARY_FN_KEYS if BOARD_LENOVO_X230S |
Edward O'Callaghan | 37130eb | 2014-12-30 15:54:47 +1100 | [diff] [blame] | 13 | select NO_UART_ON_SUPERIO |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 14 | select BOARD_ROMSIZE_KB_12288 if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T |
| 15 | select BOARD_ROMSIZE_KB_16384 if BOARD_LENOVO_X230S |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 16 | select HAVE_ACPI_TABLES |
| 17 | select HAVE_OPTION_TABLE |
| 18 | select HAVE_CMOS_DEFAULT |
| 19 | select HAVE_ACPI_RESUME |
Vladimir Serbinenko | a2a906e | 2014-09-01 01:41:37 +0200 | [diff] [blame] | 20 | select INTEL_INT15 |
Vladimir Serbinenko | 795f96e | 2014-10-27 02:45:22 +0100 | [diff] [blame] | 21 | select DRIVERS_RICOH_RCE822 |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 22 | select MEMORY_MAPPED_TPM |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 23 | select MAINBOARD_HAS_TPM1 if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T |
Iru Cai | 166eaca | 2017-04-21 13:32:56 +0800 | [diff] [blame] | 24 | select MAINBOARD_HAS_LIBGFXINIT |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 25 | select GFX_GMA_PANEL_1_ON_LVDS if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T |
Nico Huber | 29cc331 | 2018-06-06 17:40:02 +0200 | [diff] [blame] | 26 | select INTEL_GMA_HAVE_VBT |
Jan Tatje | 83a127a | 2019-01-09 20:39:28 +0100 | [diff] [blame] | 27 | select MAINBOARD_USES_IFD_GBE_REGION |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 28 | |
| 29 | # Workaround for EC/KBC IRQ1. |
| 30 | select SERIRQ_CONTINUOUS_MODE |
| 31 | |
Jonas Moehle | 1f088c8 | 2019-12-25 03:40:51 +0100 | [diff] [blame] | 32 | config VBOOT |
| 33 | select VBOOT_VBNV_CMOS |
| 34 | select GBB_FLAG_DISABLE_LID_SHUTDOWN |
| 35 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 36 | select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC |
| 37 | select GBB_FLAG_DISABLE_FWMP |
| 38 | select HAS_RECOVERY_MRC_CACHE |
| 39 | |
| 40 | config VBOOT_SLOTS_RW_AB |
| 41 | default y |
| 42 | |
| 43 | config VBOOT_VBNV_OFFSET |
| 44 | hex |
| 45 | default 0x2a |
| 46 | |
| 47 | config FMDFILE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 48 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot-rwab.fmd" if VBOOT |
Jonas Moehle | 1f088c8 | 2019-12-25 03:40:51 +0100 | [diff] [blame] | 49 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 50 | config MAINBOARD_DIR |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 51 | default "lenovo/x230" |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 52 | |
Bill XIE | ebf1932 | 2020-05-18 21:22:50 +0800 | [diff] [blame] | 53 | config VARIANT_DIR |
Bill XIE | ebf1932 | 2020-05-18 21:22:50 +0800 | [diff] [blame] | 54 | default "x230" if BOARD_LENOVO_X230 || BOARD_LENOVO_X230T |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 55 | default "x230s" if BOARD_LENOVO_X230S |
Bill XIE | ebf1932 | 2020-05-18 21:22:50 +0800 | [diff] [blame] | 56 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 57 | config MAINBOARD_PART_NUMBER |
Peter Lemenkov | 8e6fde0 | 2020-01-20 15:13:09 +0100 | [diff] [blame] | 58 | default "ThinkPad X230" if BOARD_LENOVO_X230 |
| 59 | default "ThinkPad X230t" if BOARD_LENOVO_X230T |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 60 | default "ThinkPad X230s" if BOARD_LENOVO_X230S |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 61 | |
Bill XIE | ebf1932 | 2020-05-18 21:22:50 +0800 | [diff] [blame] | 62 | config OVERRIDE_DEVICETREE |
Patrick Georgi | b8fba86 | 2020-06-17 21:06:53 +0200 | [diff] [blame] | 63 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
Bill XIE | ebf1932 | 2020-05-18 21:22:50 +0800 | [diff] [blame] | 64 | |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 65 | config USBDEBUG_HCD_INDEX |
Nicolas Reinecke | 9c2aa69 | 2015-01-04 16:23:41 +0100 | [diff] [blame] | 66 | int |
| 67 | default 2 |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 68 | |
Vladimir Serbinenko | 7686a56 | 2014-05-18 11:05:56 +0200 | [diff] [blame] | 69 | config DRAM_RESET_GATE_GPIO |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 70 | int |
| 71 | default 10 |
| 72 | |
Vladimir Serbinenko | 4b1f096 | 2015-05-12 14:43:16 +0200 | [diff] [blame] | 73 | config VGA_BIOS_ID |
| 74 | string |
| 75 | default "8086,0166" |
Vladimir Serbinenko | e7e9502 | 2014-01-12 15:26:15 +0100 | [diff] [blame] | 76 | |
dalao | 56a25a9 | 2019-10-27 17:08:34 +0800 | [diff] [blame] | 77 | config PS2K_EISAID |
| 78 | default "PNP0303" |
| 79 | |
| 80 | config PS2M_EISAID |
| 81 | default "LEN0020" |
| 82 | |
Da Lao | 56f5cc7 | 2020-04-05 00:23:09 +0800 | [diff] [blame] | 83 | config THINKPADEC_HKEY_EISAID |
| 84 | default "LEN0068" |
| 85 | |
Bill XIE | d87277a | 2020-05-08 16:40:48 +0800 | [diff] [blame] | 86 | endif # BOARD_LENOVO_X230 || BOARD_LENOVO_X230T || BOARD_LENOVO_X230S |