google/chromeec: Add support for cros_ec_keyb device
commitd4a0a348e49eb7b485d26c8a200ba20ee05293c6
authorFurquan Shaikh <furquan@chromium.org>
Mon, 6 Mar 2017 22:56:58 +0000 (6 14:56 -0800)
committerFurquan Shaikh <furquan@google.com>
Thu, 9 Mar 2017 06:31:04 +0000 (9 07:31 +0100)
tree2d5b3d6b5e9041f0cd242b8ecc7130861880fbd6
parentb1aded2f0ca2225d4363bec2e206e7c955df70c2
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)
src/ec/google/chromeec/acpi/cros_ec.asl