ec/starlabs/merlin: Use ECWR function
commit18a7c0fc7aab50e18c2d264bb89a8d7d01e1c1e9
authorSean Rhodes <sean@starlabs.systems>
Mon, 7 Mar 2022 07:48:21 +0000 (7 07:48 +0000)
committerFelix Held <felix-coreboot@felixheld.de>
Thu, 10 Mar 2022 15:08:40 +0000 (10 15:08 +0000)
tree47a66082cc08bb5ef3a5d4fd57ecc455c6892aa7
parent26cf0f954e596b0f47763fda444ebf1abafbed69
ec/starlabs/merlin: Use ECWR function

Use ECWR function, instead of writing raw values to emem, to avoid a
lack of syncronisation as it uses a mutex.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I90cfd3e1752fe25493bd72ea6bcab1fd9318d2e3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62637
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/ec/starlabs/merlin/acpi/suspend.asl