mb/google/dedede: 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 magolor, verify tablet mode and rotation work properly, keyboard/touchpad disabled in tablet mode. Change-Id: I6853465ba77be1f95cbe5795b318df02ecc1da39 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91798 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
25ad0950a8
commit
f867d8f76b
8 changed files with 40 additions and 0 deletions
|
|
@ -5,4 +5,9 @@
|
|||
|
||||
#include <baseboard/ec.h>
|
||||
|
||||
/* Enable Tablet switch for Windows drivers */
|
||||
#if !CONFIG(CHROMEOS)
|
||||
#define EC_ENABLE_TBMC_DEVICE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,4 +5,9 @@
|
|||
|
||||
#include <baseboard/ec.h>
|
||||
|
||||
/* Enable Tablet switch for Windows drivers */
|
||||
#if !CONFIG(CHROMEOS)
|
||||
#define EC_ENABLE_TBMC_DEVICE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,4 +8,9 @@
|
|||
/* Enable 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
|
||||
|
|
|
|||
|
|
@ -5,4 +5,9 @@
|
|||
|
||||
#include <baseboard/ec.h>
|
||||
|
||||
/* Enable Tablet switch for Windows drivers */
|
||||
#if !CONFIG(CHROMEOS)
|
||||
#define EC_ENABLE_TBMC_DEVICE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,4 +8,9 @@
|
|||
/* Enable 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
|
||||
|
|
|
|||
|
|
@ -5,4 +5,9 @@
|
|||
|
||||
#include <baseboard/ec.h>
|
||||
|
||||
/* Enable Tablet switch for Windows drivers */
|
||||
#if !CONFIG(CHROMEOS)
|
||||
#define EC_ENABLE_TBMC_DEVICE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,4 +5,9 @@
|
|||
|
||||
#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