From 2ba886aa6c94990b0708a78c85e3c4f8fb702185 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Thu, 24 Feb 2022 10:43:26 +0000 Subject: 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 Change-Id: I31113ef9af3a1e171e3e1f226e7adcfa0fbce61b Reviewed-on: https://review.coreboot.org/c/coreboot/+/62334 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Andy Pont Reviewed-by: Paul Menzel Reviewed-by: Angel Pons --- src/ec/starlabs/merlin/acpi/ac.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ec/starlabs/merlin/acpi/ac.asl') 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) -- cgit v1.2.3