summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorStefan Ott <stefan@ott.net>2020-04-22 23:20:03 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-04-25 15:28:45 +0000
commitcd23084284d661174c1ebaabc25aba2c52de27c7 (patch)
tree99191f0db68a3113477ee737d7bcd8e2cd8c3098 /src/ec
parentbd2dc2b764ad9f20bfcd71d9c67ef07fe95ab76d (diff)
downloadcoreboot-cd23084284d661174c1ebaabc25aba2c52de27c7.tar.xz
mb/lenovo/{x201,t410}: Move ThinkLight code
This patch moves the code to control the ThinkLight to the common ACPI folder for h8. This reduces code duplication and allows other ThinkPads to include the same code for ThinkLight support. Change-Id: I57de7516051bdcbb23fc21b4de352f265075893b Signed-off-by: Stefan Ott <stefan@ott.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40664 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/lenovo/h8/acpi/thinklight.asl17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinklight.asl b/src/ec/lenovo/h8/acpi/thinklight.asl
new file mode 100644
index 0000000000..d9b1f41b97
--- /dev/null
+++ b/src/ec/lenovo/h8/acpi/thinklight.asl
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+Method(UCMS, 1, Serialized)
+{
+ Switch(ToInteger(Arg0))
+ {
+ Case (0x0c) /* Turn on ThinkLight */
+ {
+ \_SB.PCI0.LPCB.EC.LGHT(1)
+ }
+ Case (0x0d) /* Turn off ThinkLight */
+ {
+ \_SB.PCI0.LPCB.EC.LGHT(0)
+ }
+ }
+}