diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-10-08 09:35:09 +0200 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2021-01-26 20:54:08 +0000 |
commit | 24130ec42c650fc2fc833fa3ad355015cab8349e (patch) | |
tree | 48351927a54b09f955ceee60e36792673429344d /src/mainboard/google/stout/acpi/thermal.asl | |
parent | 6c78420bcb0444f62ac41f9f0f4d0e1f4c9dd48c (diff) |
mb/google/stout: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' files are identical.
Change-Id: I1ceb2abdd2562c145b01db7307d817c858d6b978
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46180
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/google/stout/acpi/thermal.asl')
-rw-r--r-- | src/mainboard/google/stout/acpi/thermal.asl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mainboard/google/stout/acpi/thermal.asl b/src/mainboard/google/stout/acpi/thermal.asl index 24843325ce..de5a7ef926 100644 --- a/src/mainboard/google/stout/acpi/thermal.asl +++ b/src/mainboard/google/stout/acpi/thermal.asl @@ -22,10 +22,10 @@ Scope (\_TZ) 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) } @@ -51,21 +51,21 @@ Scope (\_TZ) Method (_TMP, 0, Serialized) { // Returns Higher of the two readings for CPU & VGA Temperature - If (LGreater (\_SB.PCI0.LPCB.EC0.TMP2, \_SB.PCI0.LPCB.EC0.TMP1)) + If (\_SB.PCI0.LPCB.EC0.TMP2 > \_SB.PCI0.LPCB.EC0.TMP1) { // CPU high temperature - Store (\_SB.PCI0.LPCB.EC0.TMP2, Local0) + Local0 = \_SB.PCI0.LPCB.EC0.TMP2 } Else { // VGA high temperature - Store (\_SB.PCI0.LPCB.EC0.TMP1, Local0) + Local0 = \_SB.PCI0.LPCB.EC0.TMP1 } // If temp less 35 or great then 115, set default 35 - If (Or (LLess (Local0, 35), LGreater (Local0, 115))) + If ((Local0 < 35) | (Local0 > 115)) { - Store (35, Local0) + Local0 = 35 } Return (CTOK (Local0)) |