blob: 6f26c5a56f150f29fc5474d08d5d82208a26eab5 [file] [log] [blame]
Zaolina823f9b2014-05-06 21:31:45 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011-2012 The Chromium OS Authors. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Zaolina823f9b2014-05-06 21:31:45 +020014 */
15
Zaolina823f9b2014-05-06 21:31:45 +020016/* The _PTS method (Prepare To Sleep) is called before the OS is
17 * entering a sleep state. The sleep state number is passed in Arg0
18 */
19
20Method(_PTS,1)
21{
Nicola Corna435d3072017-02-22 16:52:29 +010022 \_SB.PCI0.LPCB.EC.MUTE(1)
23 \_SB.PCI0.LPCB.EC.USBP(0)
Vladimir Serbinenkocbcf28f2015-05-13 18:22:49 +020024 \_SB.PCI0.LPCB.EC.RADI(0)
Zaolina823f9b2014-05-06 21:31:45 +020025}
26
27/* The _WAK method is called on system wakeup */
28
29Method(_WAK,1)
30{
Nicolas Reinecke85f2e122014-10-17 15:09:05 +020031 /* ME may not be up yet. */
32 Store (0, \_TZ.MEB1)
33 Store (0, \_TZ.MEB2)
34
35 /* Not implemented. */
Zaolina823f9b2014-05-06 21:31:45 +020036 Return(Package(){0,0})
37}