Arthur Heymans | c423d7d | 2018-09-16 15:50:15 +0200 | [diff] [blame] | 1 | if BOARD_LENOVO_T400 || BOARD_LENOVO_T500 || BOARD_LENOVO_R400 \ |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 2 | || BOARD_LENOVO_W500 || BOARD_LENOVO_R500 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 3 | |
Elyes HAOUAS | f0c5be2 | 2018-11-27 20:36:44 +0100 | [diff] [blame] | 4 | config BOARD_SPECIFIC_OPTIONS |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 5 | def_bool y |
| 6 | select SYSTEM_TYPE_LAPTOP |
Nico Huber | c570a0e | 2019-02-27 14:32:23 +0100 | [diff] [blame] | 7 | select CPU_INTEL_SOCKET_P |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 8 | select NORTHBRIDGE_INTEL_GM45 |
| 9 | select SOUTHBRIDGE_INTEL_I82801IX |
| 10 | select EC_LENOVO_PMH7 |
| 11 | select EC_LENOVO_H8 |
Alexey Kharlamov | 93d6ba0 | 2018-01-09 00:50:06 +0300 | [diff] [blame] | 12 | select H8_HAS_BAT_TRESHOLDS_IMPL |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 13 | select BOARD_ROMSIZE_KB_8192 if !BOARD_LENOVO_R500 |
| 14 | select BOARD_ROMSIZE_KB_4096 if BOARD_LENOVO_R500 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 15 | select DRIVERS_GENERIC_IOAPIC |
| 16 | select HAVE_MP_TABLE |
| 17 | select HAVE_ACPI_TABLES |
| 18 | select EC_ACPI |
| 19 | select HAVE_OPTION_TABLE |
| 20 | select HAVE_CMOS_DEFAULT |
| 21 | select HAVE_ACPI_RESUME |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 22 | select INTEL_INT15 |
| 23 | select SUPERIO_NSC_PC87382 |
Kyösti Mälkki | 9ab5adb | 2017-01-08 09:07:14 +0200 | [diff] [blame] | 24 | select SUPERIO_NSC_PC87384 |
Patrick Rudolph | 24680d0 | 2017-07-25 18:18:57 +0200 | [diff] [blame] | 25 | select DRIVERS_LENOVO_HYBRID_GRAPHICS |
Arthur Heymans | 5107588 | 2018-06-11 10:27:14 +0200 | [diff] [blame] | 26 | select MAINBOARD_HAS_LIBGFXINIT |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 27 | select MAINBOARD_USES_IFD_GBE_REGION if !BOARD_LENOVO_R500 |
Arthur Heymans | 86fa279 | 2019-05-19 14:41:28 +0200 | [diff] [blame] | 28 | select INTEL_GMA_HAVE_VBT |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 29 | |
Arthur Heymans | 41f826a | 2019-10-12 19:21:25 +0200 | [diff] [blame] | 30 | config VBOOT |
| 31 | select VBOOT_VBNV_CMOS |
| 32 | select GBB_FLAG_DISABLE_LID_SHUTDOWN |
| 33 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 34 | select GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC |
| 35 | select GBB_FLAG_DISABLE_FWMP |
| 36 | |
| 37 | config VBOOT_SLOTS_RW_A |
| 38 | default y |
| 39 | |
| 40 | config VBOOT_VBNV_OFFSET |
| 41 | hex |
| 42 | default 0x82 |
| 43 | |
| 44 | config FMDFILE |
| 45 | string |
| 46 | default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/vboot-rwa.fmd" if VBOOT |
| 47 | |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 48 | config MAINBOARD_DIR |
| 49 | string |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame^] | 50 | default "lenovo/t400" |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 51 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 52 | config VARIANT_DIR |
| 53 | string |
| 54 | default "t400" if BOARD_LENOVO_T400 || BOARD_LENOVO_T500 \ |
| 55 | || BOARD_LENOVO_R400 || BOARD_LENOVO_W500 |
| 56 | default "r500" if BOARD_LENOVO_R500 |
| 57 | |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 58 | config MAINBOARD_PART_NUMBER |
| 59 | string |
Arthur Heymans | c423d7d | 2018-09-16 15:50:15 +0200 | [diff] [blame] | 60 | default "ThinkPad T400" if BOARD_LENOVO_T400 |
| 61 | default "ThinkPad T500" if BOARD_LENOVO_T500 |
| 62 | default "ThinkPad R400" if BOARD_LENOVO_R400 |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 63 | default "ThinkPad R500" if BOARD_LENOVO_R500 |
Arthur Heymans | c423d7d | 2018-09-16 15:50:15 +0200 | [diff] [blame] | 64 | default "ThinkPad W500" if BOARD_LENOVO_W500 |
Michał Masłowski | 9d0330f | 2015-02-03 23:26:05 +0100 | [diff] [blame] | 65 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 66 | config OVERRIDE_DEVICETREE |
| 67 | string |
| 68 | default "variants/$(CONFIG_VARIANT_DIR)/overridetree.cb" |
| 69 | |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 70 | config USBDEBUG_HCD_INDEX |
| 71 | int |
| 72 | default 2 |
| 73 | |
| 74 | config MAX_CPUS |
| 75 | int |
Arthur Heymans | ccc042b | 2017-01-08 21:55:13 +0100 | [diff] [blame] | 76 | default 4 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 77 | |
| 78 | config CBFS_SIZE |
| 79 | hex |
| 80 | default 0x200000 |
| 81 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame] | 82 | config INTEL_GMA_VBT_FILE |
| 83 | default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt" |
| 84 | |
Timothy Pearson | 93b4745 | 2015-06-04 14:13:06 -0500 | [diff] [blame] | 85 | endif # BOARD_LENOVO_T400 |