mb/lenovo/t60: Add support for ThinkLight

With this patch, the ThinkLight on the ThinkPad T60 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

Change-Id: I47f878533d36857d002d2e2605cc8bc7e1d960c9
Signed-off-by: Stefan Ott <stefan@ott.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40678
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Stefan Ott
2020-04-22 23:20:03 +02:00
committed by Werner Zeh
parent 586be058f4
commit 0d943175f1

View File

@ -47,4 +47,6 @@ DefinitionBlock(
// Dock support code
#include "acpi/dock.asl"
#include <ec/lenovo/h8/acpi/thinklight.asl>
}