summaryrefslogtreecommitdiff
path: root/src/ec/google/wilco
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google/wilco')
-rw-r--r--src/ec/google/wilco/acpi/dptf.asl15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ec/google/wilco/acpi/dptf.asl b/src/ec/google/wilco/acpi/dptf.asl
index 6de72e817d..1b2bf80c2e 100644
--- a/src/ec/google/wilco/acpi/dptf.asl
+++ b/src/ec/google/wilco/acpi/dptf.asl
@@ -116,3 +116,18 @@ Method (PATX, 0, Serialized)
/* Clear sensor events */
W (DWTQ, Local0)
}
+
+#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES
+/*
+ * Read current Device DPTF Profile Number
+ */
+Method (RCDP, 0, NotSerialized)
+{
+ Local0 = R(DRTI)
+ If (Local0 == 0) {
+ Return (R(OTBL))
+ } else {
+ Return (Local0 - 1)
+ }
+}
+#endif