diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-03-06 14:56:58 -0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2017-03-09 07:31:04 +0100 |
commit | d4a0a348e49eb7b485d26c8a200ba20ee05293c6 (patch) | |
tree | 2d5b3d6b5e9041f0cd242b8ecc7130861880fbd6 /src/ec/google | |
parent | b1aded2f0ca2225d4363bec2e206e7c955df70c2 (diff) | |
download | coreboot-d4a0a348e49eb7b485d26c8a200ba20ee05293c6.tar.xz |
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/google')
-rw-r--r-- | src/ec/google/chromeec/acpi/cros_ec.asl | 9 |
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 53b63186b8..7f3afea41a 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 } |