summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-08-17 17:30:08 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-08-23 15:53:22 +0000
commit1b564556e94d79493fd3bb008692bb6ea3475d65 (patch)
treef8a604476b5d0c1e6c2cf5147527f0a403b3be03 /src
parent0e1a526242476ac9470f30bc0059d00cd499cacf (diff)
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 <dtor@chromium.org> Reviewed-on: https://review.coreboot.org/28260 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-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 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
}