summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Ott <stefan@ott.net>2020-04-22 23:20:03 +0200
committerAlexander Couzens <lynxis@fe80.eu>2020-05-22 09:33:31 +0000
commitbe698de76e102fd7801444a04343c4bfbad1ff2a (patch)
treeec2b85f7a396c4e1fa2399d07ba3153b67a0b587
parentb29b22888ddd88da361a5c47b39afcfdb3791be3 (diff)
downloadcoreboot-be698de76e102fd7801444a04343c4bfbad1ff2a.tar.xz
mb/lenovo/x220: Add support for ThinkLight
With this patch, the ThinkLight on the ThinkPad X220 can be controlled through the OS. This was initially done for the X201 in f63fbdb6: mb/lenovo/x201: Add support for ThinkLight. After applying this patch, the light can be controlled like this: echo on >/proc/acpi/ibm/light echo off >/proc/acpi/ibm/light Or through sysfs at /sys/class/leds/tpacpi::thinklight Unfortunately I do not own an X220 to test this. Change-Id: Icead793694475e2f63353690203790ab7ce7c597 Signed-off-by: Stefan Ott <stefan@ott.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40668 Reviewed-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/lenovo/x220/dsdt.asl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x220/dsdt.asl b/src/mainboard/lenovo/x220/dsdt.asl
index f0964d3561..b83fe38daa 100644
--- a/src/mainboard/lenovo/x220/dsdt.asl
+++ b/src/mainboard/lenovo/x220/dsdt.asl
@@ -35,4 +35,5 @@ DefinitionBlock(
}
#include <southbridge/intel/common/acpi/sleepstates.asl>
+ #include <ec/lenovo/h8/acpi/thinklight.asl>
}