summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-08 09:35:37 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-13 18:25:34 +0000
commitc766d7ca56f2a995c8b5ea14446883590cf50cf1 (patch)
tree1a4aa1017e029f4bcdec5c8c0ce7e756e941ffd7
parentf223863261bbe73113f94ec3fee200b19fdce24c (diff)
mb/google/zork: Convert to ASL 2.0 syntax
Change-Id: I71ee54116ade4d6826dffc31ee879a70d3fc967f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46181 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--src/mainboard/google/zork/variants/baseboard/include/baseboard/acpi/thermal.asl20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mainboard/google/zork/variants/baseboard/include/baseboard/acpi/thermal.asl b/src/mainboard/google/zork/variants/baseboard/include/baseboard/acpi/thermal.asl
index 8f5aa6ab5e..dec33ec5dd 100644
--- a/src/mainboard/google/zork/variants/baseboard/include/baseboard/acpi/thermal.asl
+++ b/src/mainboard/google/zork/variants/baseboard/include/baseboard/acpi/thermal.asl
@@ -21,10 +21,10 @@ Scope (\_TZ)
/* Convert from Degrees C to 1/10 Kelvin for ACPI */
Method (CTOK, 1) {
/* 10th of Degrees C */
- Multiply (Arg0, 10, Local0)
+ Local0 = Arg0 * 10
/* Convert to Kelvin */
- Add (Local0, 2732, Local0)
+ Local0 += 2732
Return (Local0)
}
@@ -50,23 +50,23 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized)
{
/* Get temperature from EC in deci-kelvin */
- Store (\_SB.PCI0.LPCB.EC0.TSRD (TMPS), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.TSRD (TMPS)
/* Critical temperature in deci-kelvin */
- Store (CTOK (\TCRT), Local1)
+ Local1 = CTOK (\TCRT)
- If (LGreaterEqual (Local0, Local1)) {
- Store ("CRITICAL TEMPERATURE", Debug)
- Store (Local0, Debug)
+ If (Local0 >= Local1) {
+ Debug = "CRITICAL TEMPERATURE"
+ Debug = Local0
/* Wait 1 second for EC to re-poll */
Sleep (1000)
/* Re-read temperature from EC */
- Store (\_SB.PCI0.LPCB.EC0.TSRD (TMPS), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.TSRD (TMPS)
- Store ("RE-READ TEMPERATURE", Debug)
- Store (Local0, Debug)
+ Debug = "RE-READ TEMPERATURE"
+ Debug = Local0
}
Return (Local0)