xref: /rk3399_ARM-atf/include/dt-bindings/interrupt-controller/irq.h (revision 3ba36ea07ca22c748b5adcf5d9bff00e752681d7)
1 /*
2  * Copyright (c) 2021-2025, Arm Limited and Contributors. All rights reserved.
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 
16 #define LEVEL	0
17 #define EDGE	2
18 
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
27