From d012a678e28561899a954149ae005178f4666d01 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 6 Oct 2023 19:34:38 -0500 Subject: [PATCH] mb/google/guybrush/var/dewatt: Add non-ChromeOS TBMC support The TBMC ACPI device is used by Windows ChromeEC drivers to determine tablet mode and to enable motion sensors (accelerometer, gyroscope). Since it's not needed/used by ChromeOS, restrict its inclusion to non-ChromeOS builds. TEST=build/boot Win11/Linux on dewatt, verify tablet mode and rotation work properly, keyboard/touchpad disabled in tablet mode. Change-Id: I3eeae7b453589a2253226709dd6cfcff1862ea17 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/91799 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- .../guybrush/variants/dewatt/include/variant/ec.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mainboard/google/guybrush/variants/dewatt/include/variant/ec.h b/src/mainboard/google/guybrush/variants/dewatt/include/variant/ec.h index 9e61a440cf..dac67ca295 100644 --- a/src/mainboard/google/guybrush/variants/dewatt/include/variant/ec.h +++ b/src/mainboard/google/guybrush/variants/dewatt/include/variant/ec.h @@ -1,3 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#ifndef __VARIANT_EC_H__ +#define __VARIANT_EC_H__ + #include + +/* Enable Tablet switch for Windows drivers */ +#if !CONFIG(CHROMEOS) +#define EC_ENABLE_TBMC_DEVICE +#endif + +#endif