ec/kontron/it8516e/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: I16890206d517f0455d29c1642cbbe642a3312481 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70679 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ca261091eb
commit
d901077335
|
@ -31,7 +31,7 @@ Device (PM1) {
|
||||||
*/
|
*/
|
||||||
Method (CTK)
|
Method (CTK)
|
||||||
{
|
{
|
||||||
Store (EC_READ (0x52), Local0)
|
Local0 = EC_READ (0x52)
|
||||||
If (And (Local0, EC_ERROR_MASK)) {
|
If (And (Local0, EC_ERROR_MASK)) {
|
||||||
Return (0)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
@ -73,17 +73,17 @@ Device (PM2) {
|
||||||
Method (CTK)
|
Method (CTK)
|
||||||
{
|
{
|
||||||
Acquire (EC_MUTEX, 0xffff)
|
Acquire (EC_MUTEX, 0xffff)
|
||||||
Store (SEND_EC_COMMAND (0x20), Local0) /* GET_CPUTEMP */
|
Local0 = SEND_EC_COMMAND (0x20) /* GET_CPUTEMP */
|
||||||
If (And (Local0, EC_ERROR_MASK)) {
|
If (And (Local0, EC_ERROR_MASK)) {
|
||||||
Release (EC_MUTEX)
|
Release (EC_MUTEX)
|
||||||
Return (0)
|
Return (0)
|
||||||
}
|
}
|
||||||
Store (RECV_EC_DATA (), Local0) /* Temp low byte in 64th °C */
|
Local0 = RECV_EC_DATA () /* Temp low byte in 64th °C */
|
||||||
If (And (Local0, EC_ERROR_MASK)) {
|
If (And (Local0, EC_ERROR_MASK)) {
|
||||||
Release (EC_MUTEX)
|
Release (EC_MUTEX)
|
||||||
Return (0)
|
Return (0)
|
||||||
}
|
}
|
||||||
Store (RECV_EC_DATA (), Local1) /* Temp high byte in 64th °C */
|
Local1 = RECV_EC_DATA () /* Temp high byte in 64th °C */
|
||||||
If (And (Local1, EC_ERROR_MASK)) {
|
If (And (Local1, EC_ERROR_MASK)) {
|
||||||
Release (EC_MUTEX)
|
Release (EC_MUTEX)
|
||||||
Return (0)
|
Return (0)
|
||||||
|
@ -91,7 +91,7 @@ Device (PM2) {
|
||||||
Release (EC_MUTEX)
|
Release (EC_MUTEX)
|
||||||
|
|
||||||
Or (ShiftLeft (Local1, 8), Local0, Local0)
|
Or (ShiftLeft (Local1, 8), Local0, Local0)
|
||||||
Store (Local0 * 10 / 64, Local0) /* Convert to 10th °C */
|
Local0 *= 10 / 64 /* Convert to 10th °C */
|
||||||
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue