1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
9 // Call a trap so SMI can prepare for Sleep as well.
11 \_SB.PCI0.LPCB.EC.MUTE(1)
12 \_SB.PCI0.LPCB.EC.USBP(0)
13 \_SB.PCI0.LPCB.EC.RADI(0)
16 /* The _WAK method is called on system wakeup */
20 /* Wake the HKEY to init BT/WWAN */
21 \_SB.PCI0.LPCB.EC.HKEY.WAKE (Arg0)
25 // Notify PCI Express slots in case a card
26 // was inserted while a sleep state was active.
28 // Are we going to S3?
33 // Are we going to S4?
38 // TODO: Windows XP SP2 P-State restore
40 // TODO: Return Arg0 as second value if S-Arg0 was entered
43 Return(Package(){0,0})
50 /* This method is placed on the top level, so we can make sure it's the
51 * first executed _INI method.
55 /* The DTS data in NVS is probably not up to date.
56 * Update temperature values and make sure AP thermal
57 * interrupts can happen
64 /* SMM power state and C4-on-C3 settings need to be updated */