summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 05:00:27 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-14 00:50:02 +0000
commita61e6546f6c736f90ad87b6be348a62c76ab2c7d (patch)
tree3a668bd38eead583d9bfa7be560e5e53f9c3f32c /src/mainboard/google/kahlee
parent69b48d8231201485611a10a4732a11e887a640f7 (diff)
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70643 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/kahlee')
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/sleep.asl8
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/thermal.asl6
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)
}