summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl13
-rw-r--r--src/mainboard/google/slippy/acpi/ec.asl3
2 files changed, 9 insertions, 7 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index dc0f60903e..6589ccf1a8 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -20,7 +20,6 @@
*/
// Mainboard specific throttle handler
-External (\_TZ.THRT, MethodObj)
#ifdef DPTF_ENABLE_CHARGER
External (\_SB.DPTF.TCHG, DeviceObj)
#endif
@@ -325,19 +324,19 @@ Device (EC0)
// Throttle Start
Method (_Q12, 0, NotSerialized)
{
+#ifdef EC_ENABLE_THROTTLING_HANDLER
Store ("EC: THROTTLE START", Debug)
- If (CondRefOf (\_TZ.THRT)) {
- \_TZ.THRT (1)
- }
+ \_TZ.THRT (1)
+#endif
}
// Throttle Stop
Method (_Q13, 0, NotSerialized)
{
+#ifdef EC_ENABLE_THROTTLING_HANDLER
Store ("EC: THROTTLE STOP", Debug)
- If (CondRefOf (\_TZ.THRT)) {
- \_TZ.THRT (0)
- }
+ \_TZ.THRT (0)
+#endif
}
#ifdef EC_ENABLE_PD_MCU_DEVICE
diff --git a/src/mainboard/google/slippy/acpi/ec.asl b/src/mainboard/google/slippy/acpi/ec.asl
index d4f62c4c91..7189ef1a9e 100644
--- a/src/mainboard/google/slippy/acpi/ec.asl
+++ b/src/mainboard/google/slippy/acpi/ec.asl
@@ -24,5 +24,8 @@
*/
#define EC_ENABLE_WAKE_PIN 0x69
+/* Slippy variants have a throttle handler in thermal.asl */
+#define EC_ENABLE_THROTTLING_HANDLER
+
/* ACPI code for EC functions */
#include <ec/google/chromeec/acpi/ec.asl>