mb/google/brya: Add non-ChromeOS TBMC support for 360/flip variants

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 taeko, verify tablet mode and rotation
work properly, keyboard/touchpad disabled in tablet mode.

Change-Id: Ie26cd77c8a58034dbce05a1ab308b9dcc122484c
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91797
Reviewed-by: Eric Lai <ericllai@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Matt DeVillier 2026-02-02 14:57:58 -06:00
commit 25ad0950a8
22 changed files with 110 additions and 0 deletions

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -8,4 +8,9 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -8,4 +8,9 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -8,4 +8,9 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -23,4 +23,9 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -44,4 +44,9 @@
/* Enable EC backed Keyboard Backlight in ACPI */
#define EC_ENABLE_KEYBOARD_BACKLIGHT
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif

View file

@ -5,4 +5,9 @@
#include <baseboard/ec.h>
/* Enable Tablet switch for Windows drivers */
#if !CONFIG(CHROMEOS)
#define EC_ENABLE_TBMC_DEVICE
#endif
#endif