Mike Loptien | ba7ed4b | 2013-03-29 13:33:39 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 Advanced Micro Devices, Inc. |
| 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. |
Mike Loptien | ba7ed4b | 2013-03-29 13:33:39 -0600 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | Scope(\_GPE) { /* Start Scope GPE */ |
| 17 | |
| 18 | /* General event 3 */ |
| 19 | Method(_L03) { |
| 20 | /* DBGO("\\_GPE\\_L00\n") */ |
| 21 | Notify(\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 22 | } |
| 23 | |
| 24 | /* Legacy PM event */ |
| 25 | Method(_L08) { |
| 26 | /* DBGO("\\_GPE\\_L08\n") */ |
| 27 | } |
| 28 | |
| 29 | /* Temp warning (TWarn) event */ |
| 30 | Method(_L09) { |
| 31 | /* DBGO("\\_GPE\\_L09\n") */ |
| 32 | /* Notify (\_TZ.TZ00, 0x80) */ |
| 33 | } |
| 34 | |
| 35 | /* USB controller PME# */ |
| 36 | Method(_L0B) { |
| 37 | /* DBGO("\\_GPE\\_L0B\n") */ |
| 38 | Notify(\_SB.PCI0.UOH1, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 39 | Notify(\_SB.PCI0.UOH2, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 40 | Notify(\_SB.PCI0.UOH3, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 41 | Notify(\_SB.PCI0.UOH4, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 42 | Notify(\_SB.PCI0.UOH5, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 43 | Notify(\_SB.PCI0.UOH6, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 44 | Notify(\_SB.PCI0.UEH1, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 45 | Notify(\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 46 | } |
| 47 | |
| 48 | /* ExtEvent0 SCI event */ |
| 49 | Method(_L10) { |
| 50 | /* DBGO("\\_GPE\\_L10\n") */ |
| 51 | } |
| 52 | |
| 53 | |
| 54 | /* ExtEvent1 SCI event */ |
| 55 | Method(_L11) { |
| 56 | /* DBGO("\\_GPE\\_L11\n") */ |
| 57 | } |
| 58 | |
| 59 | /* GPIO0 or GEvent8 event */ |
| 60 | Method(_L18) { |
| 61 | /* DBGO("\\_GPE\\_L18\n") */ |
| 62 | Notify(\_SB.PCI0.PBR4, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 63 | Notify(\_SB.PCI0.PBR5, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 64 | Notify(\_SB.PCI0.PBR6, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 65 | Notify(\_SB.PCI0.PBR7, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 66 | Notify(\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 67 | } |
| 68 | |
| 69 | /* Azalia SCI event */ |
| 70 | Method(_L1B) { |
| 71 | /* DBGO("\\_GPE\\_L1B\n") */ |
| 72 | Notify(\_SB.PCI0.AZHD, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 73 | Notify(\_SB.PWRB, 0x02) /* NOTIFY_DEVICE_WAKE */ |
| 74 | } |
| 75 | } /* End Scope GPE */ |
| 76 | |
| 77 | /* Contains the GPEs for USB overcurrent */ |
| 78 | #include "usb_oc.asl" |