[coreboot-gerrit] Patch set updated for coreboot: acpi: device: Add macro for active high level triggered IRQ
Martin Roth (martinroth@google.com)
gerrit at coreboot.org
Wed Mar 15 01:32:36 CET 2017
Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18815
-gerrit
commit b2939e3547751f5442b56eaf0681b9d369eac304
Author: Duncan Laurie <dlaurie at chromium.org>
Date: Tue Mar 14 16:44:46 2017 -0700
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 at chromium.org>
---
src/arch/x86/include/arch/acpi_device.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/arch/x86/include/arch/acpi_device.h b/src/arch/x86/include/arch/acpi_device.h
index a9cc85e..08dae65 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);
More information about the coreboot-gerrit
mailing list