From d4a0a348e49eb7b485d26c8a200ba20ee05293c6 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 6 Mar 2017 14:56:58 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/18641 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/acpi/cros_ec.asl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 } -- cgit v1.2.3