summaryrefslogtreecommitdiff
path: root/src/mainboard/google/slippy/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 07:01:44 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-14 00:51:01 +0000
commita006259e6f6b09b388dd7fa0669c84bdeaea951b (patch)
treeec567dc92dfde955e653c06d6ced0e454beb11c1 /src/mainboard/google/slippy/acpi
parent1bb621c002121bc84ba0fb8be9e9166520936b55 (diff)
mb/google/slippy/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: I950d776a712a104f2caed614886ce2527028ead7 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70681 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/slippy/acpi')
-rw-r--r--src/mainboard/google/slippy/acpi/platform.asl8
-rw-r--r--src/mainboard/google/slippy/acpi/thermal.asl8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/mainboard/google/slippy/acpi/platform.asl b/src/mainboard/google/slippy/acpi/platform.asl
index 010ee9bae3..c98fc6e5c7 100644
--- a/src/mainboard/google/slippy/acpi/platform.asl
+++ b/src/mainboard/google/slippy/acpi/platform.asl
@@ -15,16 +15,16 @@ Method(_PTS,1)
Method(_WAK,1)
{
/* Update AC status */
- Store (\_SB.PCI0.LPCB.EC0.ACEX, Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.ACEX
if (Local0 != \PWRS) {
- Store (Local0, \PWRS)
+ \PWRS = Local0
Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
}
/* Update LID status */
- Store (\_SB.PCI0.LPCB.EC0.LIDS, Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.LIDS
if (Local0 != \LIDS) {
- Store (Local0, \LIDS)
+ \LIDS = Local0
Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
}
diff --git a/src/mainboard/google/slippy/acpi/thermal.asl b/src/mainboard/google/slippy/acpi/thermal.asl
index c71b8dbfce..38baad631b 100644
--- a/src/mainboard/google/slippy/acpi/thermal.asl
+++ b/src/mainboard/google/slippy/acpi/thermal.asl
@@ -64,7 +64,7 @@ Scope (\_TZ)
Method (TCHK, 0, Serialized)
{
// Get Temperature from TIN# set in NVS
- Store (\_SB.PCI0.LPCB.EC0.TINS (TMPS), Local0)
+ Local0 = \_SB.PCI0.LPCB.EC0.TINS (TMPS)
// Check for sensor not calibrated
If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
@@ -97,10 +97,10 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized)
{
// Get temperature from EC in deci-kelvin
- Store (TCHK (), Local0)
+ Local0 = TCHK ()
// Critical temperature in deci-kelvin
- Store (CTOK (\TCRT), Local1)
+ Local1 = CTOK (\TCRT)
If (Local0 >= Local1) {
Printf ("CRITICAL TEMPERATURE: %o", Local0)
@@ -109,7 +109,7 @@ Scope (\_TZ)
Sleep (1000)
// Re-read temperature from EC
- Store (TCHK (), Local0)
+ Local0 = TCHK ()
Printf ("RE-READ TEMPERATURE: %o", Local0)
}