summaryrefslogtreecommitdiffstats
path: root/src/ec
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-03-06 14:56:58 -0800
committerFurquan Shaikh <furquan@google.com>2017-03-09 07:31:04 +0100
commitd4a0a348e49eb7b485d26c8a200ba20ee05293c6 (patch)
tree2d5b3d6b5e9041f0cd242b8ecc7130861880fbd6 /src/ec
parentb1aded2f0ca2225d4363bec2e206e7c955df70c2 (diff)
downloadcoreboot-d4a0a348e49eb7b485d26c8a200ba20ee05293c6.tar.gz
coreboot-d4a0a348e49eb7b485d26c8a200ba20ee05293c6.tar.bz2
coreboot-d4a0a348e49eb7b485d26c8a200ba20ee05293c6.zip
google/chromeec: Add support for cros_ec_keyb device
This is required to pass button information from EC to kernel without using 8042 keyboard driver. 1. Define EC buttons device using GOOG0007 ACPI ID. 2. Guard enabling of this device using EC_ENABLE_MKBP_DEVICE. BUG=b:35774934 BRANCH=None TEST=Verified using evtest that kernel is able to get button press/release information from EC. Change-Id: I4578f16648305350d36fb50f2a5d2285514daed4 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/18641 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/acpi/cros_ec.asl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl
index 53b63186b836..7f3afea41a69 100644
--- a/src/ec/google/chromeec/acpi/cros_ec.asl
+++ b/src/ec/google/chromeec/acpi/cros_ec.asl
@@ -18,4 +18,13 @@ Device (CREC)
Name (_HID, "GOOG0004")
Name (_UID, 1)
Name (_DDN, "EC Command Device")
+
+#ifdef EC_ENABLE_MKBP_DEVICE
+ Device (CKSC)
+ {
+ Name (_HID, "GOOG0007")
+ Name (_UID, 1)
+ Name (_DDN, "EC MKBP Device")
+ }
+#endif
}