From 7273e183992793f5ec3f255ddec77219c991d32a Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Tue, 14 Mar 2017 16:44:46 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/18815 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh --- src/arch/x86/include/arch/acpi_device.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); -- cgit v1.2.3