From d76947f13b760d876fdfb675bac992cb4275e1c1 Mon Sep 17 00:00:00 2001 From: Maciej Matuszczyk Date: Thu, 16 Jan 2020 10:11:01 +0100 Subject: mb/lenovo/x201: Support undock button on X200 ultrabase Only the ACPI code needs to be extended, as smihandler.c already supported it. The _Q50 Method is just _Q18 with changed name. On Linux, pressing the undock button does nothing, so the only safe way to undock is to press Fn+F9. With this patch, when the undock button is pressed, the green LED lights up, and undocking is safe. Change-Id: Iaaecad031bb1f39dd1a778d0c8eaea6bce9e0f57 Signed-off-by: Maciej Matuszczyk Reviewed-on: https://review.coreboot.org/c/coreboot/+/38446 Reviewed-by: Angel Pons Reviewed-by: Mimoja Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/x201/acpi/dock.asl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/x201/acpi/dock.asl b/src/mainboard/lenovo/x201/acpi/dock.asl index 2bba82141c..b3381a710c 100644 --- a/src/mainboard/lenovo/x201/acpi/dock.asl +++ b/src/mainboard/lenovo/x201/acpi/dock.asl @@ -60,6 +60,11 @@ Scope(\_SB.PCI0.LPCB.EC) Notify(\_SB.DOCK, 3) } + Method(_Q50, 0, NotSerialized) + { + Notify(\_SB.DOCK, 3) + } + Method(_Q58, 0, NotSerialized) { Notify(\_SB.DOCK, 0) -- cgit v1.2.3