summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/lenovo/h8/acpi/thermal.asl48
1 files changed, 37 insertions, 11 deletions
diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl
index 84e23f9675..d43e3c6fbd 100644
--- a/src/ec/lenovo/h8/acpi/thermal.asl
+++ b/src/ec/lenovo/h8/acpi/thermal.asl
@@ -40,20 +40,36 @@ Scope(\_TZ)
/* Thermal sampling period for passive cooling: 10 seconds */
Name (_TSP, 100)
- Method(_CRT, 0, NotSerialized) {
+ /* Coefficients for passive cooling */
+ Name (_TC1, 0x02)
+ Name (_TC2, 0x05)
+
+#if !IS_ENABLED(CONFIG_CPU_INTEL_MODEL_206AX) && \
+ !IS_ENABLED(CONFIG_CPU_INTEL_MODEL_2065X) && \
+ !IS_ENABLED(CONFIG_CPU_INTEL_MODEL_306AX)
+ /* Generated by acpigen */
+External (\PPKG, MethodObj)
+#endif
+ /* Processors used for passive cooling */
+ Method (_PSL, 0, Serialized)
+ {
+ Return (\PPKG ())
+ }
+
+ Method (_CRT, 0, NotSerialized) {
Store (\TCRT, Local0)
- if (LGreater(Local0, Zero)) {
- Return (C2K(Local0))
+ if (LGreater (Local0, 0)) {
+ Return (C2K (Local0))
}
- Return (C2K(127))
+ Return (C2K (127))
}
- Method(_PSV, 0, NotSerialized) {
+ Method (_PSV, 0, NotSerialized) {
Store (\TPSV, Local0)
- if (LGreater(Local0, Zero)) {
+ if (LGreater (Local0, 0)) {
Return (C2K(Local0))
}
- Return (C2K(95))
+ Return (C2K (95))
}
Method(_TMP) {
@@ -76,12 +92,22 @@ Scope(\_TZ)
/* Thermal sampling period for passive cooling: 10 seconds */
Name (_TSP, 100)
- Method(_CRT, 0, NotSerialized) {
- Return (C2K(99))
+ /* Coefficients for passive cooling */
+ Name (_TC1, 0x02)
+ Name (_TC2, 0x05)
+
+ /* Processors used for passive cooling */
+ Method (_PSL, 0, Serialized)
+ {
+ Return (\PPKG ())
+ }
+
+ Method (_CRT, 0, NotSerialized) {
+ Return (C2K (99))
}
- Method(_PSV, 0, NotSerialized) {
- Return (C2K(94))
+ Method (_PSV, 0, NotSerialized) {
+ Return (C2K (94))
}
Method(_TMP) {