1 /* SPDX-License-Identifier: GPL-2.0-only */
4 /* Board powers on with button or PME# from on-board GbE wake-on-lan.
5 * Board shuts down to S5/G2. Any other power management is untested.
8 Name (\_S0, Package () { 0x00, 0x00, 0x00, 0x00 })
9 Name (\_S1, Package () { 0x01, 0x01, 0x00, 0x00 })
10 Name (\_S3, Package () { 0x05, 0x05, 0x00, 0x00 })
11 Name (\_S4, Package () { 0x06, 0x06, 0x00, 0x00 })
12 Name (\_S5, Package () { 0x07, 0x07, 0x00, 0x00 })
16 Method (_L03, 0, NotSerialized)
18 Notify (\_SB.PCI0.USB0, 0x02)
20 Method (_L04, 0, NotSerialized)
22 Notify (\_SB.PCI0.USB1, 0x02)
26 Method (_L08, 0, NotSerialized)
28 Notify (\_SB.PCI0.PCI5, 0x02)
29 Notify (\_SB.SLBT, 0x02)
33 Method (_L0B, 0, NotSerialized)
35 Notify (\_SB.LID0, 0x02)
38 Method (_L0C, 0, NotSerialized)
40 Notify (\_SB.PCI0.USB2, 0x02)
44 Method (_L0D, 0, NotSerialized)
46 Notify (\_SB.PCI0.USB3, 0x02)
50 /* Clear power buttons */
51 Method (\_INI, 0, NotSerialized)
53 \_SB.PCI0.ICH0.PS1H |= 9
54 \_SB.PCI0.ICH0.PE1H |= 1
57 /* Prepare To Sleep */
58 Method (\_PTS, 1, NotSerialized)
60 \_SB.PCI0.ICH0.GS0H |= 0x19
61 \_SB.PCI0.ICH0.GS0L |= 0x11
65 Method (\_WAK, 1, NotSerialized)
67 \_SB.PCI0.ICH0.GS0H |= 0x19
68 \_SB.PCI0.ICH0.GS0L |= 0x11
70 Return ( Package() { 0x0, 0x0 } )