Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Sage Electronic Engineering, LLC |
| 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. |
Edward O'Callaghan | 32960e3 | 2014-11-23 17:38:52 +1100 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | Scope(\_GPE) { /* Start Scope GPE */ |
| 17 | |
| 18 | /* Legacy PM event */ |
| 19 | Method(_L08) { |
| 20 | /* DBGO("\\_GPE\\_L08\n") */ |
| 21 | } |
| 22 | |
| 23 | /* Temp warning (TWarn) event */ |
| 24 | Method(_L09) { |
| 25 | /* DBGO("\\_GPE\\_L09\n") */ |
| 26 | /* Notify (\_TZ.TZ00, 0x80) */ |
| 27 | } |
| 28 | |
| 29 | /* USB controller PME# */ |
| 30 | Method(_L0B) { |
| 31 | Store("USB PME", Debug) |
| 32 | /* Notify devices of wake event */ |
| 33 | Notify(\_SB.PCI0.UOH1, 0x02) |
| 34 | Notify(\_SB.PCI0.UOH2, 0x02) |
| 35 | Notify(\_SB.PCI0.UOH3, 0x02) |
| 36 | Notify(\_SB.PCI0.UOH4, 0x02) |
| 37 | Notify(\_SB.PCI0.XHC0, 0x02) |
| 38 | Notify(\_SB.PCI0.UEH1, 0x02) |
| 39 | Notify(\_SB.PWRB, 0x02) |
| 40 | } |
| 41 | |
| 42 | /* ExtEvent0 SCI event */ |
| 43 | Method(_L10) { |
| 44 | /* DBGO("\\_GPE\\_L10\n") */ |
| 45 | } |
| 46 | |
| 47 | |
| 48 | /* ExtEvent1 SCI event */ |
| 49 | Method(_L11) { |
| 50 | /* DBGO("\\_GPE\\_L11\n") */ |
| 51 | } |
| 52 | |
| 53 | /* Lid switch opened or closed */ |
| 54 | Method(_L16) { |
| 55 | Store("Lid status changed", Debug) |
| 56 | /* Flip trigger polarity */ |
| 57 | Not(LPOL, LPOL) |
| 58 | /* Notify lid object of status change */ |
| 59 | Notify(\_SB.LID, 0x80) |
| 60 | } |
| 61 | |
| 62 | /* GPIO0 or GEvent8 event */ |
| 63 | Method(_L18) { |
| 64 | Store("PCI bridge wake event", Debug) |
| 65 | /* Notify PCI bridges of wake event */ |
| 66 | Notify(\_SB.PCI0.PBR4, 0x02) |
| 67 | Notify(\_SB.PCI0.PBR5, 0x02) |
| 68 | } |
| 69 | |
| 70 | /* Azalia SCI event */ |
| 71 | Method(_L1B) { |
| 72 | /* DBGO("\\_GPE\\_L1B\n") */ |
| 73 | Notify(\_SB.PCI0.AZHD, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 74 | Notify(\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 75 | } |
| 76 | } /* End Scope GPE */ |