Yann Gautier | 7b7e4bf | 2019-01-17 19:16:03 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ |
| 2 | /* |
| 3 | * This header provides constants for the ARM GIC. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H |
| 7 | #define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H |
| 8 | |
| 9 | /* interrupt specifier cell 0 */ |
| 10 | |
| 11 | #define GIC_SPI 0 |
| 12 | #define GIC_PPI 1 |
| 13 | |
| 14 | #define IRQ_TYPE_NONE 0 |
| 15 | #define IRQ_TYPE_EDGE_RISING 1 |
| 16 | #define IRQ_TYPE_EDGE_FALLING 2 |
| 17 | #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) |
| 18 | #define IRQ_TYPE_LEVEL_HIGH 4 |
| 19 | #define IRQ_TYPE_LEVEL_LOW 8 |
| 20 | |
| 21 | #endif |