coreboot/src/ec
Stefan Ott a3705122ee UPSTREAM: 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.

BUG=none
BRANCH=none
TEST=none

Change-Id: Id1345b20413a0dfd9834527b2b20faad2dccc75c
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: f63fbdb63a
Original-Change-Id: I80285f6630b5830766d82e3ecd174c4a51aa9066
Original-Signed-off-by: Stefan Ott <stefan@ott.net>
Original-Reviewed-on: https://review.coreboot.org/19644
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://chromium-review.googlesource.com/506181
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
2017-05-15 08:17:44 -07:00
..
acpi UPSTREAM: ec/acpi: Add function to read EC status register 2017-04-10 14:28:37 -07:00
compal/ene932 UPSTREAM: ec/ene932: correct ACPI battery data fed into ToString() 2016-12-16 07:51:42 -08:00
google/chromeec UPSTREAM: ec/google/chromeec: provide reboot function 2017-05-07 16:25:53 -07:00
kontron/it8516e UPSTREAM: sio/acpi: Add more magic bytes to ENTER/EXIT_CONFIG_MODE 2016-12-08 22:46:20 -08:00
lenovo UPSTREAM: mb/lenovo/x201: Add support for ThinkLight 2017-05-15 08:17:44 -07:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta UPSTREAM: src/ec: Improve code formatting 2016-09-07 21:31:50 -07:00
roda/it8518 UPSTREAM: ec/roda/it8518: Do EC write manually with long timeout 2017-04-10 14:28:38 -07:00
smsc/mec1308 Workaround for unused variable warning. 2016-02-09 19:58:14 +01:00
ec.h UPSTREAM: mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-28 05:49:31 -07:00