summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/acpi/suspend.asl
blob: 7c8f2b1bd548e84f66ac6a97f7ed0277ee09b3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}