From 1b564556e94d79493fd3bb008692bb6ea3475d65 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Fri, 17 Aug 2018 17:30:08 -0700 Subject: google/chromeec: Add support for "base attached switch" device On some detachables, the mere presence of attached base is not enough to determine whether the device is in tablet mode or not, so we introducing a new "switch" in EC, separate from "Tablet Mode" switch, to signal whether the base is attached or not. We also want the driver to be separate from cros_ec_keyb, so we create a new ACPI device, C(hrome)B(ase)A(ttached)S(witch), with HID GOOG000B, and guard it with EC_ENABLE_CBAS_DEVICE. Change-Id: Id73a12f04a1a48f7fbd9365c2a501afadf3878fa Signed-off-by: Dmitry Torokhov Reviewed-on: https://review.coreboot.org/28260 Reviewed-by: Duncan Laurie Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/acpi/cros_ec.asl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ec/google/chromeec/acpi') diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl index b246fe33fa..1d7fb5227b 100644 --- a/src/ec/google/chromeec/acpi/cros_ec.asl +++ b/src/ec/google/chromeec/acpi/cros_ec.asl @@ -30,4 +30,13 @@ Device (CREC) Name (_DDN, "EC MKBP Device") } #endif + +#ifdef EC_ENABLE_CBAS_DEVICE + Device (CBAS) + { + Name (_HID, "GOOG000B") + Name (_UID, 1) + Name (_DDN, "EC Base Switch Device") + } +#endif } -- cgit v1.2.3