aboutsummaryrefslogtreecommitdiff
path: root/src/ec/kontron
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 06:40:41 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-16 00:59:41 +0000
commitd901077335aaaf69117c28f05abfc66b036876b4 (patch)
tree788506c51413964f1c9fac49f929125842ff8e4f /src/ec/kontron
parentca261091eb1f1b676710e1b68a0a595be53840ac (diff)
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>
Diffstat (limited to 'src/ec/kontron')
-rw-r--r--src/ec/kontron/it8516e/acpi/pm_channels.asl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ec/kontron/it8516e/acpi/pm_channels.asl b/src/ec/kontron/it8516e/acpi/pm_channels.asl
index 5df72c0985..133a0651fa 100644
--- a/src/ec/kontron/it8516e/acpi/pm_channels.asl
+++ b/src/ec/kontron/it8516e/acpi/pm_channels.asl
@@ -31,7 +31,7 @@ Device (PM1) {
*/
Method (CTK)
{
- Store (EC_READ (0x52), Local0)
+ Local0 = EC_READ (0x52)
If (And (Local0, EC_ERROR_MASK)) {
Return (0)
}
@@ -73,17 +73,17 @@ Device (PM2) {
Method (CTK)
{
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)) {
Release (EC_MUTEX)
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)) {
Release (EC_MUTEX)
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)) {
Release (EC_MUTEX)
Return (0)
@@ -91,7 +91,7 @@ Device (PM2) {
Release (EC_MUTEX)
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 */
}
}