summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t430s/Kconfig
diff options
context:
space:
mode:
authorBill XIE <persmule@gmail.com>2018-11-29 20:37:35 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-12-07 11:20:53 +0000
commit012ef7735d6878ef63aa0315863636bfb88e6c1f (patch)
treeba849a3d2d6b4ced66bccf34e48e256678265876 /src/mainboard/lenovo/t430s/Kconfig
parentd2226060aac315c4420dc57569d90af5b0bf32c0 (diff)
mainboard/lenovo/t430s: Add ThinkPad T431s as a variant
The code is based on autoport and that for T430s Tested: - CPU i5-3337U - Slotted DIMM 2GiB - Soldered RAM 4GiB from samsung (There may be more models here) - Camera - pci-e and usb2 on M.2 slot with A key for wlan - sata and usb2 (no superspeed components) on M.2 slot with B key for wwan - On board SDHCI connected to pci-e - USB3 ports - libgfxinit-based graphic init - NVRAM options for North and South bridges - Sound - Thinkpad EC - S3 - TPM1 on LPC - EHCI debug on SSP2 (USB3 port on the left) - Linux 4.9.110-3 within Debian GNU/Linux stable, loaded from Linux payload (Heads), Seabios may also work. Not tested: - Fingerprint reader on USB2 (not present on mine) - Keyboard backlight (not present on mine) - "sticky_fn" flag in nvram Not implemented yet: - Fn locking in nvram (may not be identical to "sticky_fn") - C-based native graphic init (since T431s has eDP instead of LVDS) - Detecting the model of Soldered RAM at runtime, and loading the corresponding SPD datum (3 observed) from CBFS (the mechanism may be similar to that on x1_carbon_gen1 and s230u, but I do not know how to find gpio ports for that, and SPD data stored in vendor firmware.) Change-Id: Ic8062cacf5e8232405bb5757e1b1d063541f354a Signed-off-by: Bill XIE <persmule@gmail.com> Reviewed-on: https://review.coreboot.org/c/30021 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/lenovo/t430s/Kconfig')
-rw-r--r--src/mainboard/lenovo/t430s/Kconfig23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/mainboard/lenovo/t430s/Kconfig b/src/mainboard/lenovo/t430s/Kconfig
index f6096d813e..e507ec864e 100644
--- a/src/mainboard/lenovo/t430s/Kconfig
+++ b/src/mainboard/lenovo/t430s/Kconfig
@@ -1,4 +1,4 @@
-if BOARD_LENOVO_T430S
+if BOARD_LENOVO_T430S || BOARD_LENOVO_T431S
config BOARD_SPECIFIC_OPTIONS
def_bool y
@@ -16,12 +16,12 @@ config BOARD_SPECIFIC_OPTIONS
select HAVE_CMOS_DEFAULT
select HAVE_ACPI_RESUME
select INTEL_INT15
- select SANDYBRIDGE_IVYBRIDGE_LVDS
+ select SANDYBRIDGE_IVYBRIDGE_LVDS if BOARD_LENOVO_T430S
select ENABLE_VMX
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM1
select MAINBOARD_HAS_LIBGFXINIT
- select GFX_GMA_INTERNAL_IS_LVDS
+ select GFX_GMA_INTERNAL_IS_LVDS if BOARD_LENOVO_T430S
select INTEL_GMA_HAVE_VBT
# Workaround for EC/KBC IRQ1.
@@ -31,9 +31,19 @@ config MAINBOARD_DIR
string
default lenovo/t430s
+config VARIANT_DIR
+ string
+ default "t430s" if BOARD_LENOVO_T430S
+ default "t431s" if BOARD_LENOVO_T431S
+
config MAINBOARD_PART_NUMBER
string
- default "ThinkPad T430s"
+ default "ThinkPad T430s" if BOARD_LENOVO_T430S
+ default "ThinkPad T431s" if BOARD_LENOVO_T431S
+
+config OVERRIDE_DEVICETREE
+ string
+ default "variants/$(CONFIG_VARIANT_DIR)/overridetree.cb"
config MAX_CPUS
int
@@ -57,10 +67,11 @@ config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
hex
- default 0x21fb
+ default 0x21fb if BOARD_LENOVO_T430S
+ default 0x2208 if BOARD_LENOVO_T431S
config ONBOARD_VGA_IS_PRIMARY
bool
default y
-endif # BOARD_LENOVO_T430S
+endif # BOARD_LENOVO_T430S || BOARD_LENOVO_T431S