Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of |
| 9 | * the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include "smi.h" |
| 18 | Scope (\_GPE) |
| 19 | { |
| 20 | Method(_L18, 0, NotSerialized) |
| 21 | { |
| 22 | /* Read EC register to clear wake status */ |
| 23 | Store(\_SB.PCI0.LPCB.EC.WAKE, Local0) |
Vladimir Serbinenko | b27c24f | 2016-02-08 00:10:44 +0100 | [diff] [blame] | 24 | /* So that we don't get a warning that Local0 is unused. */ |
| 25 | Increment (Local0) |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 26 | } |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 27 | } |