summaryrefslogtreecommitdiff
path: root/src/ec/quanta/ene_kb3940q
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 04:56:53 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-14 00:48:46 +0000
commit612801d0f88bd8ca12fbca372af1348ce1f297c4 (patch)
tree368dceec6e50a32fd1978bb8219c71e713248fbd /src/ec/quanta/ene_kb3940q
parentff6b3af113f84a1957dcdf8a8179a751ce08becf (diff)
ec/quanta/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: I00a6ece73048209861221cba5f2c7381adfa54b9 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70639 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/ec/quanta/ene_kb3940q')
-rw-r--r--src/ec/quanta/ene_kb3940q/acpi/ac.asl2
-rw-r--r--src/ec/quanta/ene_kb3940q/acpi/ec.asl24
2 files changed, 13 insertions, 13 deletions
diff --git a/src/ec/quanta/ene_kb3940q/acpi/ac.asl b/src/ec/quanta/ene_kb3940q/acpi/ac.asl
index b086bf5cd2..cc14b33add 100644
--- a/src/ec/quanta/ene_kb3940q/acpi/ac.asl
+++ b/src/ec/quanta/ene_kb3940q/acpi/ac.asl
@@ -9,7 +9,7 @@ Device (AC)
Method (_PSR)
{
- Store(ADPT, Local0)
+ Local0 = ADPT
Return(Local0)
}
diff --git a/src/ec/quanta/ene_kb3940q/acpi/ec.asl b/src/ec/quanta/ene_kb3940q/acpi/ec.asl
index 9294e1bbba..9d38bb6461 100644
--- a/src/ec/quanta/ene_kb3940q/acpi/ec.asl
+++ b/src/ec/quanta/ene_kb3940q/acpi/ec.asl
@@ -122,23 +122,23 @@ Device (EC0)
Method (_REG, 2, NotSerialized)
{
// Initialize AC power state
- Store (ADPT, \PWRS)
+ \PWRS = ADPT
// Initialize LID switch state
- Store (LIDF, \LIDS)
+ \LIDS = LIDF
// Force a read of CPU temperature
- Store (CTMP, Local0)
+ Local0 = CTMP
// Use Local0 to avoid iasl warning: Method Local is set but never used
And(Local0, Ones, Local0)
// Find and program number of P-States
- Store (SizeOf (\_SB.CP00._PSS), MPST)
+ MPST = SizeOf (\_SB.CP00._PSS)
Printf ("Programming number of P-states: %o", MPST)
// Find and program the current P-State
- Store(\_SB.CP00._PPC, NPST)
+ NPST = \_SB.CP00._PPC
Printf ("Programming Current P-state: %o", NPST)
}
@@ -176,7 +176,7 @@ Device (EC0)
{
Printf ("Pstate Event 0x0E")
- Store(\_SB.CP00._PPC, Local0)
+ Local0 = \_SB.CP00._PPC
Local1 = PPCM - 1
If(Local0 < Local1) {
@@ -184,28 +184,28 @@ Device (EC0)
\PPCN ()
}
- Store(Local0, NPST)
+ NPST = Local0
}
// Pstate Up
Method (_Q0F)
{
Printf ("Pstate Event 0x0F")
- Store(\_SB.CP00._PPC, Local0)
+ Local0 = \_SB.CP00._PPC
If(Local0) {
Local0--
\PPCN ()
}
- Store(Local0, NPST)
+ NPST = Local0
}
// AC Power Connected
Method (_Q10, 0, NotSerialized)
{
Printf ("AC Insertion Event 0x10")
- Store (One, \PWRS)
+ \PWRS = One
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()
@@ -215,7 +215,7 @@ Device (EC0)
Method (_Q11, 0, NotSerialized)
{
Printf ("AC Detach Event 0x11")
- Store (Zero, \PWRS)
+ \PWRS = Zero
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()
@@ -255,7 +255,7 @@ Device (EC0)
{
Printf ("Lid Switch Event 0x06")
sleep(20)
- Store (LIDF, \LIDS)
+ \LIDS = LIDF
Notify (\_SB.LID0, 0x80)
}