mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: 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: If1600c8d14e3a920e9f4eb1ec1e3dd62a75349c0
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 7273e18399
Original-Change-Id: I25c7b035a198efb218f0f6b4ba3f4a1bf532bcea
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18815
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/455844
This commit is contained in:
parent
c19aeabec8
commit
23328bade9
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue