summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/w541/acpi
diff options
context:
space:
mode:
authorAmersel <amersel@runbox.me>2021-04-25 15:23:43 -0400
committerPatrick Georgi <pgeorgi@google.com>2021-06-15 07:50:50 +0000
commit2d2d61c7e1a70ff655c44f42065b31429fadd576 (patch)
treece24703007f205f26e93c6a67e428bb894b25d5a /src/mainboard/lenovo/w541/acpi
parentb50b6a5fa7e3d1810ab60dcc9b646ab7914b79e3 (diff)
mb/lenovo/w541: Add ThinkPad W541
Add support for the ThinkPad W541 based on Peter Lemenkov's initial W541 port. Compiled and tested with SeaBIOS and Tianocore booting into Arch Linux 5.10.32-lts. The Haswell mrc.bin blob is required. Tested working: - SATA SSD - SATA DVD drive - M.2 SATA - All USB ports - SD card reader - Speakers/headphone jack - Keyboard/touchpad - libgfxinit - VGA - mini DisplayPort (Thunderbolt untested) - eDP laptop screen - NVIDIA GPU in Linux - Camera/Mic - Smartcard reader - Internal flashing when IFD is unlocked - ThinkPad basic dock (VGA, USB, Ethernet) - CMOS options - WLAN - Bluetooth - Ethernet - Using me_cleaner - All DDR3 slots Not working: - Keyboard backlight - First boot can take up to 20s (MRC.bin is slow) Untested: - Thunderbolt - Internal flashing when IFD is locked - Other ThinkPad docks (DisplayPort, DVI, Audio) - ExpressCard slot - Battery thresholds - WWAN card - Fingerprint reader - USB Debug console Signed-off-by: Justin Wu <amersel@runbox.me> Change-Id: Ia43070f51bba3cf59ba9b7d9e29e4e778efbeb08 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52659 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Peter Lemenkov <lemenkov@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/lenovo/w541/acpi')
-rw-r--r--src/mainboard/lenovo/w541/acpi/ec.asl4
-rw-r--r--src/mainboard/lenovo/w541/acpi/platform.asl14
-rw-r--r--src/mainboard/lenovo/w541/acpi/superio.asl3
3 files changed, 21 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/w541/acpi/ec.asl b/src/mainboard/lenovo/w541/acpi/ec.asl
new file mode 100644
index 0000000000..8dea152079
--- /dev/null
+++ b/src/mainboard/lenovo/w541/acpi/ec.asl
@@ -0,0 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <ec/lenovo/h8/acpi/ec.asl>
+#include <ec/lenovo/h8/acpi/thinkpad_bat_thresholds_b0.asl>
diff --git a/src/mainboard/lenovo/w541/acpi/platform.asl b/src/mainboard/lenovo/w541/acpi/platform.asl
new file mode 100644
index 0000000000..f5a4df75f4
--- /dev/null
+++ b/src/mainboard/lenovo/w541/acpi/platform.asl
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+Method(_WAK,1)
+{
+ /* ME may not be up yet. */
+ \_TZ.MEB1 = 0
+ \_TZ.MEB2 = 0
+ Return(Package(){0,0})
+}
+
+Method(_PTS,1)
+{
+ \_SB.PCI0.LPCB.EC.RADI(0)
+}
diff --git a/src/mainboard/lenovo/w541/acpi/superio.asl b/src/mainboard/lenovo/w541/acpi/superio.asl
new file mode 100644
index 0000000000..ee2eabeb75
--- /dev/null
+++ b/src/mainboard/lenovo/w541/acpi/superio.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <drivers/pc80/pc/ps2_controller.asl>