summaryrefslogtreecommitdiff
path: root/src/arch/x86/include
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2017-03-14 16:44:46 -0700
committerDuncan Laurie <dlaurie@chromium.org>2017-03-15 18:32:06 +0100
commit7273e183992793f5ec3f255ddec77219c991d32a (patch)
treeece7e6954d68fb43e311f49222edcfdbff6888f2 /src/arch/x86/include
parent7f3741840c68679db36d359c9c96dad48af63536 (diff)
downloadcoreboot-7273e183992793f5ec3f255ddec77219c991d32a.tar.xz
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>
Diffstat (limited to 'src/arch/x86/include')
-rw-r--r--src/arch/x86/include/arch/acpi_device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/acpi_device.h b/src/arch/x86/include/arch/acpi_device.h
index a9cc85eb3b..08dae65db4 100644
--- a/src/arch/x86/include/arch/acpi_device.h
+++ b/src/arch/x86/include/arch/acpi_device.h
@@ -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);