]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: implement Generic Event Device
authorSinan Kaya <okaya@codeaurora.org>
Sun, 7 Feb 2016 15:00:31 +0000 (10:00 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Apr 2016 00:09:26 +0000 (02:09 +0200)
commit6c04a1f359f628f5e89aa654d14d56d8b6dbad78
tree1ef023cf2a9d7655f4ade4cb4c7a84b2828dfc18
parent4358ad30b78a3e000ac991e7bd80536e53e71f4e
ACPI: implement Generic Event Device

Generic Event Device described in ACPI 6.1 allows platforms to handle
platform interrupts in ACPI ASL statements. It borrows constructs like
_EVT from GPIO events. All interrupts are listed in _CRS and the handler
is written in _EVT method. Here is an example.

Device (GED0)
{

Name (_HID, "ACPI0013")
Name (_UID, 0)
Name(_CRS, ResourceTemplate ()
{
Interrupt(ResourceConsumer, Edge, ActiveHigh, Shared, , , )
 {123}
})

Method (_EVT, 1) {
if (Lequal(123, Arg0))
{
}
}
}

Wake capability has not been implemented yet.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Makefile
drivers/acpi/evged.c [new file with mode: 0644]