diff options
Diffstat (limited to 'src/ec/google/chromeec/acpi')
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 13317f6d4c..84d5e32785 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -25,6 +25,7 @@ External (\_SB.DPTF.TEVT, MethodObj) #ifdef DPTF_ENABLE_CHARGER External (\_SB.DPTF.TCHG, DeviceObj) #endif +External (\_SB.DPTF.TPET, MethodObj) Device (EC0) { @@ -52,6 +53,7 @@ Device (EC0) PATT, 8, // Programmable Auxiliary Trip Threshold PATC, 8, // Programmable Auxiliary Trip Commit CHGL, 8, // Charger Current Limit + TBMD, 1, // Tablet mode } #if CONFIG_EC_GOOGLE_CHROMEEC_ACPI_MEMMAP @@ -296,6 +298,15 @@ Device (EC0) Notify (CREC, 0x80) } + // TABLET mode switch Event + Method (_Q1D, 0, NotSerialized) + { + Store ("EC: TABLET mode switch Event", Debug) + If (CondRefOf (\_SB.DPTF.TPET)) { + \_SB.DPTF.TPET() + } + } + /* * Dynamic Platform Thermal Framework support */ @@ -422,6 +433,12 @@ Device (EC0) Store (0xFF, ^CHGL) } + /* Read current Tablet mode */ + Method (RCTM, 0, NotSerialized) + { + Return (^TBMD) + } + #include "ac.asl" #include "battery.asl" #include "cros_ec.asl" |