diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-01-19 18:30:21 -0800 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2017-02-07 01:44:52 +0100 |
commit | 87d5fb89fe5224dbb743be5bffa4d3f524263f2b (patch) | |
tree | ad225667cbb27a54030cd8e78851a14b6c4baf33 /src/ec/google/chromeec/acpi/ec.asl | |
parent | 3d3c8c30ead13f641d97e4b526547fe5af71522f (diff) |
ec/google/chromeec: Add support for tablet mode switch driver
Add a new driver GOOG0006 to report tablet switch
to user space.
On glados based convertible, check that with a new kernel driver
(cros_ec_tbmc) that evtest collects tablet switch changes.
Change-Id: I6821eaac1feb6c182bc973aaa2f747e687715afb
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/430951
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/18173
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/acpi/ec.asl')
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index b182766947..a40d0acbc0 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -322,6 +322,7 @@ Device (EC0) Notify (CREC, 0x80) } +#ifdef EC_ENABLE_TABLET_EVENT // TABLET mode switch Event Method (_Q1D, 0, NotSerialized) { @@ -329,7 +330,9 @@ Device (EC0) If (CondRefOf (\_SB.DPTF.TPET)) { \_SB.DPTF.TPET() } + Notify (TBMC, 0x80) } +#endif /* * Dynamic Platform Thermal Framework support @@ -478,4 +481,8 @@ Device (EC0) #ifdef EC_ENABLE_PD_MCU_DEVICE #include "pd.asl" #endif + +#ifdef EC_ENABLE_TABLET_EVENT + #include "tbmc.asl" +#endif } |