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 |
Kyösti Mälkki | 9ab5adb | 2017-01-08 09:07:14 +0200 | [diff] [blame] | 13 | select H8_DOCK_EARLY_INIT |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 14 | select BOARD_ROMSIZE_KB_8192 if !BOARD_LENOVO_R500 |
| 15 | select BOARD_ROMSIZE_KB_4096 if BOARD_LENOVO_R500 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 16 | select DRIVERS_GENERIC_IOAPIC |
| 17 | select HAVE_MP_TABLE |
| 18 | select HAVE_ACPI_TABLES |
| 19 | select EC_ACPI |
| 20 | select HAVE_OPTION_TABLE |
| 21 | select HAVE_CMOS_DEFAULT |
| 22 | select HAVE_ACPI_RESUME |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 23 | select INTEL_INT15 |
| 24 | select SUPERIO_NSC_PC87382 |
Kyösti Mälkki | 9ab5adb | 2017-01-08 09:07:14 +0200 | [diff] [blame] | 25 | select SUPERIO_NSC_PC87384 |
Patrick Rudolph | 24680d0 | 2017-07-25 18:18:57 +0200 | [diff] [blame] | 26 | select DRIVERS_LENOVO_HYBRID_GRAPHICS |
Arthur Heymans | 5107588 | 2018-06-11 10:27:14 +0200 | [diff] [blame] | 27 | select MAINBOARD_HAS_LIBGFXINIT |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 28 | select MAINBOARD_USES_IFD_GBE_REGION if !BOARD_LENOVO_R500 |
Arthur Heymans | 86fa279 | 2019-05-19 14:41:28 +0200 | [diff] [blame] | 29 | select INTEL_GMA_HAVE_VBT |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 30 | |
| 31 | config MAINBOARD_DIR |
| 32 | string |
Timothy Pearson | 93b4745 | 2015-06-04 14:13:06 -0500 | [diff] [blame] | 33 | default lenovo/t400 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 34 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 35 | config VARIANT_DIR |
| 36 | string |
| 37 | default "t400" if BOARD_LENOVO_T400 || BOARD_LENOVO_T500 \ |
| 38 | || BOARD_LENOVO_R400 || BOARD_LENOVO_W500 |
| 39 | default "r500" if BOARD_LENOVO_R500 |
| 40 | |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 41 | config MAINBOARD_PART_NUMBER |
| 42 | string |
Arthur Heymans | c423d7d | 2018-09-16 15:50:15 +0200 | [diff] [blame] | 43 | default "ThinkPad T400" if BOARD_LENOVO_T400 |
| 44 | default "ThinkPad T500" if BOARD_LENOVO_T500 |
| 45 | default "ThinkPad R400" if BOARD_LENOVO_R400 |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 46 | default "ThinkPad R500" if BOARD_LENOVO_R500 |
Arthur Heymans | c423d7d | 2018-09-16 15:50:15 +0200 | [diff] [blame] | 47 | default "ThinkPad W500" if BOARD_LENOVO_W500 |
Michał Masłowski | 9d0330f | 2015-02-03 23:26:05 +0100 | [diff] [blame] | 48 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 49 | config OVERRIDE_DEVICETREE |
| 50 | string |
| 51 | default "variants/$(CONFIG_VARIANT_DIR)/overridetree.cb" |
| 52 | |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 53 | config USBDEBUG_HCD_INDEX |
| 54 | int |
| 55 | default 2 |
| 56 | |
| 57 | config MAX_CPUS |
| 58 | int |
Arthur Heymans | ccc042b | 2017-01-08 21:55:13 +0100 | [diff] [blame] | 59 | default 4 |
Timothy Pearson | 4b373c9 | 2015-04-05 17:54:08 -0500 | [diff] [blame] | 60 | |
| 61 | config CBFS_SIZE |
| 62 | hex |
| 63 | default 0x200000 |
| 64 | |
Patrick Rudolph | 8ebb95d | 2016-03-10 20:50:42 +0100 | [diff] [blame] | 65 | config ONBOARD_VGA_IS_PRIMARY |
| 66 | bool |
| 67 | default y |
| 68 | |
Arthur Heymans | 0318021 | 2018-09-16 18:55:28 +0200 | [diff] [blame^] | 69 | config INTEL_GMA_VBT_FILE |
| 70 | default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt" |
| 71 | |
Timothy Pearson | 93b4745 | 2015-06-04 14:13:06 -0500 | [diff] [blame] | 72 | endif # BOARD_LENOVO_T400 |