diff options
author | Duncan Laurie <dlaurie@google.com> | 2015-09-01 09:47:55 -0700 |
---|---|---|
committer | Duncan Laurie <dlaurie@google.com> | 2015-09-01 19:59:22 +0000 |
commit | ef549a04c50aaef425b6f21324aa275d2e1318f4 (patch) | |
tree | c7213a8285a8a479bf292a99d2c3bdd8ae800e98 /src/mainboard/google/glados/acpi | |
parent | ab5754da6639f51ee2aec796f832ce4e3b164f82 (diff) | |
download | coreboot-ef549a04c50aaef425b6f21324aa275d2e1318f4.tar.xz |
chromeec: Move keyboard backlight code into Chrome EC directory
Since more boards are starting to use the EC provided keyboard
backlight interface move the code to a common place and allow
it to get included in mainboards.
Change-Id: I3f307bbce1a96cdd1c8224b1e89a63d6fedef738
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: http://review.coreboot.org/11478
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/glados/acpi')
-rw-r--r-- | src/mainboard/google/glados/acpi/ec.asl | 3 | ||||
-rw-r--r-- | src/mainboard/google/glados/acpi/mainboard.asl | 18 |
2 files changed, 3 insertions, 18 deletions
diff --git a/src/mainboard/google/glados/acpi/ec.asl b/src/mainboard/google/glados/acpi/ec.asl index 321b2ce600..33a7471a8c 100644 --- a/src/mainboard/google/glados/acpi/ec.asl +++ b/src/mainboard/google/glados/acpi/ec.asl @@ -21,6 +21,9 @@ #include <mainboard/google/glados/ec.h> #include <mainboard/google/glados/gpio.h> +/* Enable EC backed Keyboard Backlight in ACPI */ +#define EC_ENABLE_KEYBOARD_BACKLIGHT + /* Enable EC backed PD MCU device in ACPI */ #define EC_ENABLE_PD_MCU_DEVICE diff --git a/src/mainboard/google/glados/acpi/mainboard.asl b/src/mainboard/google/glados/acpi/mainboard.asl index 8e512596f5..efa7dddcf4 100644 --- a/src/mainboard/google/glados/acpi/mainboard.asl +++ b/src/mainboard/google/glados/acpi/mainboard.asl @@ -47,24 +47,6 @@ Scope (\_SB) { Name (_HID, EisaId ("PNP0C0C")) } - - /* Keyboard Backlight interface via EC */ - Device (KBLT) { - Name (_HID, "GOOG0002") - Name (_UID, 1) - - /* Read current backlight value */ - Method (KBQC, 0) - { - Return (\_SB.PCI0.LPCB.EC0.KBLV) - } - - /* Write new backlight value */ - Method (KBCM, 1) - { - Store (Arg0, \_SB.PCI0.LPCB.EC0.KBLV) - } - } } /* |