summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/ktqm77
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-08 09:41:38 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-26 21:04:09 +0000
commit4d088699f80da9c749cbbd6a5822f57a6c11a68c (patch)
tree625a47a5b780ae3e0af1f067d3ec28b289ac1186 /src/mainboard/kontron/ktqm77
parent4c77a8b3edb53b7dde8e01276a55d8871c5752cd (diff)
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>
Diffstat (limited to 'src/mainboard/kontron/ktqm77')
-rw-r--r--src/mainboard/kontron/ktqm77/acpi/platform.asl2
-rw-r--r--src/mainboard/kontron/ktqm77/acpi/thermal.asl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/kontron/ktqm77/acpi/platform.asl b/src/mainboard/kontron/ktqm77/acpi/platform.asl
index cc45619df3..a0e255c7e8 100644
--- a/src/mainboard/kontron/ktqm77/acpi/platform.asl
+++ b/src/mainboard/kontron/ktqm77/acpi/platform.asl
@@ -7,7 +7,7 @@
Method(_PTS,1)
{
/* 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)
}
diff --git a/src/mainboard/kontron/ktqm77/acpi/thermal.asl b/src/mainboard/kontron/ktqm77/acpi/thermal.asl
index 24004934ee..3465b75ff9 100644
--- a/src/mainboard/kontron/ktqm77/acpi/thermal.asl
+++ b/src/mainboard/kontron/ktqm77/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)
}