coreboot-kgpe-d16/src/ec
Stefan Ott f63fbdb63a mb/lenovo/x201: Add support for ThinkLight
The thinkpad-acpi driver uses the UCMS (CMOS) ACPI method to control the
ThinkLight from the Operating System. This patch adds partial support for
that method, enough to enable or disable the ThinkLight:

echo on >/proc/acpi/ibm/light
echo off >/proc/acpi/ibm/light

With the original BIOS the UCMS method exposes a wide range of values
through a generic /proc/acpi/ibm/cmos interface. With the changes suggested
in this patch that interface is also exposed but only accepts the commands
to enable or disable the ThinkLight; all other commands are ignored.

This change would potentially benefit all currently supported Thinkpad
models, I only have an X201 available for tests though.

Change-Id: I80285f6630b5830766d82e3ecd174c4a51aa9066
Signed-off-by: Stefan Ott <stefan@ott.net>
Reviewed-on: https://review.coreboot.org/19644
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2017-05-11 16:43:26 +02:00
..
acpi ec/acpi: Add function to read EC status register 2017-04-08 13:16:52 +02:00
compal/ene932 ec/ene932: correct ACPI battery data fed into ToString() 2016-12-15 23:39:04 +01:00
google/chromeec ec/google/chromeec: provide reboot function 2017-05-05 23:23:58 +02:00
kontron/it8516e sio/acpi: Add more magic bytes to ENTER/EXIT_CONFIG_MODE 2016-12-07 20:01:50 +01:00
lenovo mb/lenovo/x201: Add support for ThinkLight 2017-05-11 16:43:26 +02:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta src/ec: Improve code formatting 2016-09-07 13:55:05 +02:00
roda/it8518 ec/roda/it8518: Do EC write manually with long timeout 2017-04-08 13:17:56 +02:00
smsc/mec1308 Workaround for unused variable warning. 2016-02-09 19:58:14 +01:00
ec.h mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-26 23:53:12 +02:00