Yann Gautier | f1b6b01 | 2021-05-25 18:14:24 +0200 | [diff] [blame] | 1 | /* |
Boyan Karatotev | 270d5c5 | 2025-02-11 14:41:18 +0000 | [diff] [blame^] | 2 | * Copyright (c) 2021-2025, Arm Limited and Contributors. All rights reserved. |
Yann Gautier | f1b6b01 | 2021-05-25 18:14:24 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * This header provides constants for most IRQ bindings. |
| 7 | * |
| 8 | * Most IRQ bindings include a flags cell as part of the IRQ specifier. |
| 9 | * In most cases, the format of the flags cell uses the standard values |
| 10 | * defined in this header. |
| 11 | */ |
| 12 | |
| 13 | #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H |
| 14 | #define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H |
| 15 | |
Boyan Karatotev | 270d5c5 | 2025-02-11 14:41:18 +0000 | [diff] [blame^] | 16 | #define LEVEL 0 |
| 17 | #define EDGE 2 |
| 18 | |
Yann Gautier | f1b6b01 | 2021-05-25 18:14:24 +0200 | [diff] [blame] | 19 | #define IRQ_TYPE_NONE 0 |
| 20 | #define IRQ_TYPE_EDGE_RISING 1 |
| 21 | #define IRQ_TYPE_EDGE_FALLING 2 |
| 22 | #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) |
| 23 | #define IRQ_TYPE_LEVEL_HIGH 4 |
| 24 | #define IRQ_TYPE_LEVEL_LOW 8 |
| 25 | |
| 26 | #endif |