summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2022-01-05 19:07:48 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-03-07 17:22:14 +0000
commit269b8e2cc528fdbc6cd82dd1a0a02dc5f6f0741c (patch)
tree940ab6fc5b6f4ca68926adaaa0d9644674f191b5
parentbe082fe9f401304c29a839c63a835e793b9f41ff (diff)
mb/google/glados: Restore ChromeEC tablet mode switch for caroline, cave
Commit 017b5c453a72f57ec785da1764939e24651ac5eb [ec/google/chromeec/acpi: Rename EC_ENABLE_TABLET_EVENT config] broke tablet mode on google/caroline and cave in mainline Linux kernels by changing the inclusion of the ChromeEC tablet mode ACPI handler. Fix this by addding it back (using the updated name guarding the inclusion of the tmbc ACPI). Test: build/boot google/cave under Linux 5.16, observe tablet mode handled correctly. Change-Id: Ie0ae5b6a61f104b5e973383344d289cc2e2a7b8d Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62447 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/mainboard/google/glados/variants/caroline/include/variant/ec.h3
-rw-r--r--src/mainboard/google/glados/variants/cave/include/variant/ec.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/glados/variants/caroline/include/variant/ec.h b/src/mainboard/google/glados/variants/caroline/include/variant/ec.h
index d0001b4b12..a03b43e8d9 100644
--- a/src/mainboard/google/glados/variants/caroline/include/variant/ec.h
+++ b/src/mainboard/google/glados/variants/caroline/include/variant/ec.h
@@ -2,3 +2,6 @@
/* EC ENABLE MULTIPLE DPTF PROFILES */
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES
+
+/* Enable Tablet switch */
+#define EC_ENABLE_TBMC_DEVICE
diff --git a/src/mainboard/google/glados/variants/cave/include/variant/ec.h b/src/mainboard/google/glados/variants/cave/include/variant/ec.h
index 8f6aa5ed72..293cb6952e 100644
--- a/src/mainboard/google/glados/variants/cave/include/variant/ec.h
+++ b/src/mainboard/google/glados/variants/cave/include/variant/ec.h
@@ -8,3 +8,6 @@
/* EC ENABLE MULTIPLE DPTF PROFILES */
#define EC_ENABLE_MULTIPLE_DPTF_PROFILES
+
+/* Enable Tablet switch */
+#define EC_ENABLE_TBMC_DEVICE