mb/google/skyrim/acpi: Replace Store(a,b) with ASL 2.0 syntax

Replace `Store (a, b)` with `b = a`.

Change-Id: Ib75ccc10c8086086f5db4ced1163b74c9835364b
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70682
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>
This commit is contained in:
Felix Singer 2022-12-12 07:24:30 +01:00
parent a006259e6f
commit 1151088c02
1 changed files with 13 additions and 13 deletions

View File

@ -21,7 +21,7 @@ Scope (\_SB)
If (\_SB.PRTN == 7)
{
\_SB.DDEF()
Store (0, \_SB.PRTN)
\_SB.PRTN = 0
Return (Zero)
}
@ -34,13 +34,13 @@ Scope (\_SB)
// 50C=323K, 323-200(offset)=123(0x7B)
If (\_SB.PCI0.LPCB.EC0.TIN4 >= 123) {
\_SB.DTTB()
Store (1, \_SB.PRTN)
\_SB.PRTN = 1
Return (Zero)
}
// AMB sensor release point
If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 118)) {
\_SB.DDEF()
Store (0, \_SB.PRTN)
\_SB.PRTN = 0
Return (Zero)
}
// Keep tht previous thermal table
@ -48,11 +48,11 @@ Scope (\_SB)
} Else {
If (\_SB.PRTN == 3 || \_SB.PRTN == 5) {
\_SB.DTTB()
Store (1, \_SB.PRTN)
\_SB.PRTN = 1
Return (Zero)
} Else {
\_SB.DDEF()
Store (0, \_SB.PRTN)
\_SB.PRTN = 0
Return (Zero)
}
}
@ -61,12 +61,12 @@ Scope (\_SB)
If (\_SB.PRTN == 2 || \_SB.PRTN == 3) {
If (\_SB.PCI0.LPCB.EC0.TIN4 >= 128) {
\_SB.DTTD()
Store (3, \_SB.PRTN)
\_SB.PRTN = 3
Return (Zero)
}
If(\_SB.PCI0.LPCB.EC0.TIN4 <= 123) {
\_SB.DTTC()
Store (2, \_SB.PRTN)
\_SB.PRTN = 2
Return (Zero)
}
// Keep tht previous thermal table
@ -74,11 +74,11 @@ Scope (\_SB)
} Else {
If (\_SB.PRTN == 1 || \_SB.PRTN == 5) {
\_SB.DTTD()
Store (3, \_SB.PRTN)
\_SB.PRTN = 3
Return (Zero)
} Else {
\_SB.DTTC()
Store (2, \_SB.PRTN)
\_SB.PRTN = 2
Return (Zero)
}
}
@ -89,13 +89,13 @@ Scope (\_SB)
// AMB sensor trigger point
If (\_SB.PCI0.LPCB.EC0.TIN4 >= 118) {
\_SB.DTTF()
Store (5, \_SB.PRTN)
\_SB.PRTN = 5
Return (Zero)
}
// AMB sensor release point
If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 113)) {
\_SB.DTTE()
Store (4, \_SB.PRTN)
\_SB.PRTN = 4
Return (Zero)
}
// Keep tht previous thermal table
@ -103,11 +103,11 @@ Scope (\_SB)
} Else {
If (\_SB.PRTN == 1 || \_SB.PRTN == 3) {
\_SB.DTTF()
Store (5, \_SB.PRTN)
\_SB.PRTN = 5
Return (Zero)
} Else {
\_SB.DTTE()
Store (4, \_SB.PRTN)
\_SB.PRTN = 4
Return (Zero)
}
}