summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/acpi/suspend.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/starlabs/merlin/acpi/suspend.asl')
-rw-r--r--src/ec/starlabs/merlin/acpi/suspend.asl19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ec/starlabs/merlin/acpi/suspend.asl b/src/ec/starlabs/merlin/acpi/suspend.asl
new file mode 100644
index 0000000000..7c8f2b1bd5
--- /dev/null
+++ b/src/ec/starlabs/merlin/acpi/suspend.asl
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Method (RPTS, 1, NotSerialized)
+{
+ \_SB.PCI0.LPCB.EC.OSFG = 0x00
+
+ If ((Arg0 == 0x04) || (Arg0 == 0x05))
+ {
+ /* Store current EC settings */
+ \_SB.PCI0.LPCB.EC.TPLA = \_SB.PCI0.LPCB.TPLS
+ \_SB.PCI0.LPCB.EC.FLKA = \_SB.PCI0.LPCB.FLKS
+ \_SB.PCI0.LPCB.EC.KLBE = \_SB.PCI0.LPCB.KLBC
+ }
+}
+
+Method (RWAK, 1, Serialized)
+{
+ \_SB.PCI0.LPCB.EC.OSFG = 0x01
+}