diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-10-08 09:30:57 +0200 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2021-01-28 21:37:14 +0000 |
commit | cdad79659d0f3aa7f7c1d8bf9383e0fb9d074013 (patch) | |
tree | 8e5a1a30ee92f08de39ae40f0b097521c7f593d9 /src/mainboard/google/butterfly/acpi/thermal.asl | |
parent | 94239cd6b111ecdb780b901ba825e16b378c0bdc (diff) | |
download | coreboot-cdad79659d0f3aa7f7c1d8bf9383e0fb9d074013.tar.xz |
mb/google/butterfly: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' files are same.
Change-Id: I85edf649a5170a1658fb135b797c1c6e1d2a9d70
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46171
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/google/butterfly/acpi/thermal.asl')
-rw-r--r-- | src/mainboard/google/butterfly/acpi/thermal.asl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/google/butterfly/acpi/thermal.asl b/src/mainboard/google/butterfly/acpi/thermal.asl index 4c6f6d9963..ed381cdab9 100644 --- a/src/mainboard/google/butterfly/acpi/thermal.asl +++ b/src/mainboard/google/butterfly/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,13 +50,13 @@ Scope (\_TZ) Method (_TMP, 0, Serialized) { // Get CPU Temperature from EC - Store (\_SB.PCI0.LPCB.EC0.CTMP, Local0) + Local0 = \_SB.PCI0.LPCB.EC0.CTMP // Convert to 1/10 Kelvin - Multiply (Local0, 10, Local0) + Local0 *= 10 // Adjust by offset to get Kelvin - Add (Local0, 2732, Local0) + Local0 += 2732 Return (Local0) } |