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