Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 1 | /* |
| 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. |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 14 | */ |
| 15 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 16 | /* 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 | |
| 20 | Method(_PTS,1) |
| 21 | { |
Nicola Corna | 435d307 | 2017-02-22 16:52:29 +0100 | [diff] [blame] | 22 | \_SB.PCI0.LPCB.EC.MUTE(1) |
| 23 | \_SB.PCI0.LPCB.EC.USBP(0) |
Vladimir Serbinenko | cbcf28f | 2015-05-13 18:22:49 +0200 | [diff] [blame] | 24 | \_SB.PCI0.LPCB.EC.RADI(0) |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | /* The _WAK method is called on system wakeup */ |
| 28 | |
| 29 | Method(_WAK,1) |
| 30 | { |
| 31 | /* ME may not be up yet. */ |
| 32 | Store (0, \_TZ.MEB1) |
| 33 | Store (0, \_TZ.MEB2) |
| 34 | |
| 35 | /* Not implemented. */ |
| 36 | Return(Package(){0,0}) |
| 37 | } |