From a61e6546f6c736f90ad87b6be348a62c76ab2c7d Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 12 Dec 2022 05:00:27 +0100 Subject: [PATCH] mb/google/kahlee/acpi: Replace Store(a,b) with ASL 2.0 syntax Replace `Store (a, b)` with `b = a`. Change-Id: Ib2ba6b5c14f6699dc6c0734724a6784e3400a467 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70643 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Eric Lai --- .../variants/baseboard/include/baseboard/acpi/sleep.asl | 8 ++++---- .../variants/baseboard/include/baseboard/acpi/thermal.asl | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/sleep.asl b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/sleep.asl index 7aaf4782cb..8a56bc6ce4 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/sleep.asl +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/sleep.asl @@ -29,10 +29,10 @@ Method (_PTS, 1) \_SB.PCI0.FPTS () /* Clear wake status structure. */ - Store (0, PEWD) - Store (0, WKST[0]) - Store (0, WKST[1]) - Store (7, UPWS) + PEWD = 0 + WKST[0] = 0 + WKST[1] = 0 + UPWS = 7 } /* diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/thermal.asl b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/thermal.asl index a30a2cc342..6a9afa8130 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/thermal.asl +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/thermal.asl @@ -52,10 +52,10 @@ 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 (Local0 >= Local1) { Printf ("CRITICAL TEMPERATURE: %o", Local0) @@ -64,7 +64,7 @@ Scope (\_TZ) Sleep (1000) /* Re-read temperature from EC */ - Store (\_SB.PCI0.LPCB.EC0.TSRD (TMPS), Local0) + Local0 = \_SB.PCI0.LPCB.EC0.TSRD (TMPS) Printf ("RE-READ TEMPERATURE: %o", Local0) }