acpi: device: Add macro for active high level triggered IRQ

Add the missing macro for ACPI_IRQ_LEVEL_HIGH so it can get
used by devicetree when necessary.

BUG=b:35585307
BRANCH=none
TEST=Add rt5514 SPI device with active high level IRQ on Eve board
and check that it is enumerated in the kernel

Change-Id: I25c7b035a198efb218f0f6b4ba3f4a1bf532bcea
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/18815
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Duncan Laurie 2017-03-14 16:44:46 -07:00
parent 7f3741840c
commit 7273e18399
1 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,13 @@ struct acpi_irq {
.shared = ACPI_IRQ_SHARED, \
.wake = ACPI_IRQ_NO_WAKE }
#define ACPI_IRQ_LEVEL_HIGH(x) { \
.pin = (x), \
.mode = ACPI_IRQ_LEVEL_TRIGGERED, \
.polarity = ACPI_IRQ_ACTIVE_HIGH, \
.shared = ACPI_IRQ_SHARED, \
.wake = ACPI_IRQ_NO_WAKE }
/* Write extended Interrupt() descriptor to SSDT AML output */
void acpi_device_write_interrupt(const struct acpi_irq *irq);