mb/kontron/ktqm77: Convert to ASL 2.0 syntax

Change-Id: I7ba4625075fd3c27092d854903baf140521c8f7b
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46188
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Elyes HAOUAS 2020-10-08 09:41:38 +02:00 committed by Michael Niewöhner
parent 4c77a8b3ed
commit 4d088699f8
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
Method(_PTS,1) Method(_PTS,1)
{ {
/* Let suspend LED flash slowly in S3 and S4 */ /* Let suspend LED flash slowly in S3 and S4 */
If (LOr (LEqual (Arg0, 3), LEqual (Arg0, 4))) If ((Arg0 == 3) || (Arg0 == 4))
{ {
\_SB.PCI0.LPCB.SIO0.SUSL (0x06) \_SB.PCI0.LPCB.SIO0.SUSL (0x06)
} }

View File

@ -21,10 +21,10 @@ Scope (\_TZ)
// Convert from Degrees C to 1/10 Kelvin for ACPI // Convert from Degrees C to 1/10 Kelvin for ACPI
Method (CTOK, 1) { Method (CTOK, 1) {
// 10th of Degrees C // 10th of Degrees C
Multiply (Arg0, 10, Local0) Local0 = Arg0 * 10
// Convert to Kelvin // Convert to Kelvin
Add (Local0, 2732, Local0) Local0 += 2732
Return (Local0) Return (Local0)
} }