summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/acpi/ac.asl
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-02-24 10:43:26 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-08 15:02:17 +0000
commit2ba886aa6c94990b0708a78c85e3c4f8fb702185 (patch)
treeeac79100b05893c331dbf7cc62ce302716973ea6 /src/ec/starlabs/merlin/acpi/ac.asl
parent4b2490eed629801cfb59dc2bf20cccebba8daa0a (diff)
ec/starlabs/merlin: Use ECRD function
Use ECRD function, instead of getting raw values from emem, to avoid a lack of syncronisation as it uses a mutex. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I31113ef9af3a1e171e3e1f226e7adcfa0fbce61b Reviewed-on: https://review.coreboot.org/c/coreboot/+/62334 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Andy Pont <andy.pont@sdcsystems.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/starlabs/merlin/acpi/ac.asl')
-rw-r--r--src/ec/starlabs/merlin/acpi/ac.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/starlabs/merlin/acpi/ac.asl b/src/ec/starlabs/merlin/acpi/ac.asl
index 847f872e50..01dcca90a3 100644
--- a/src/ec/starlabs/merlin/acpi/ac.asl
+++ b/src/ec/starlabs/merlin/acpi/ac.asl
@@ -9,7 +9,7 @@ Device (ADP1)
}
Method (_PSR, 0)
{
- PWRS = ECPS & 0x01
+ PWRS = (ECRD (RefOf(ECPS)) & 0x01)
Return (PWRS)
}
Method (_PCL, 0)