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 <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91799 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
7eb70b259b
commit
d012a678e2
1 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#ifndef __VARIANT_EC_H__
|
||||
#define __VARIANT_EC_H__
|
||||
|
||||
#include <baseboard/ec.h>
|
||||
|
||||
/* Enable Tablet switch for Windows drivers */
|
||||
#if !CONFIG(CHROMEOS)
|
||||
#define EC_ENABLE_TBMC_DEVICE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue