summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl17
-rw-r--r--src/ec/google/chromeec/acpi/emem.asl1
2 files changed, 18 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index ae4758af8b..99f9344b77 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -8,6 +8,9 @@
// DTT Power Participant Device Notification
#define POWER_STATE_CHANGE_NOTIFICATION 0x81
+// DTT OEM variables change notification
+#define EC_OEM_VARIABLE_DATA_MASK 0x7
+#define INT3400_ODVP_CHANGED 0x88
// Mainboard specific throttle handler
#ifdef DPTF_ENABLE_CHARGER
@@ -20,6 +23,12 @@ External(\_SB.DPTC, MethodObj)
External (\_SB.DPTF.TPWR, DeviceObj)
+#ifdef DPTF_ENABLE_OEM_VARIABLES
+External (\_SB.DPTF.ODVP, MethodObj)
+External (\_SB.DPTF.ODGT, MethodObj)
+External (\_SB.DPTF.ODUP, MethodObj)
+#endif
+
Device (EC0)
{
Name (_HID, EISAID ("PNP0C09"))
@@ -334,6 +343,14 @@ Device (EC0)
Printf ("EC: THROTTLE START")
\_TZ.THRT (1)
#endif
+
+#ifdef DPTF_ENABLE_OEM_VARIABLES
+ Local0 = ToInteger(EOVD) & EC_OEM_VARIABLE_DATA_MASK
+ \_SB.DPTF.ODUP(0, Local0)
+ Local0 = \_SB.DPTF.ODGT(0)
+ \_SB.DPTF.ODVP()
+ Notify (\_SB.DPTF, INT3400_ODVP_CHANGED)
+#endif
}
// Throttle Stop
diff --git a/src/ec/google/chromeec/acpi/emem.asl b/src/ec/google/chromeec/acpi/emem.asl
index dd59503bb6..3f9a457e18 100644
--- a/src/ec/google/chromeec/acpi/emem.asl
+++ b/src/ec/google/chromeec/acpi/emem.asl
@@ -53,3 +53,4 @@ Offset (0xa6),
GPUD, 8, // GPU Data
Offset (0xa7),
PWRT, 8, // Power source and change count
+EOVD, 8, // EC OEM Variable Data