xref: /optee_os/core/include/dt-bindings/interrupt-controller/irq.h (revision 12941fdcbaa31bd0c6ab241022a7eba66c801467)
1*12941fdcSEtienne Carriere /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2*12941fdcSEtienne Carriere /*
3*12941fdcSEtienne Carriere  * This header provides constants for most IRQ bindings.
4*12941fdcSEtienne Carriere  *
5*12941fdcSEtienne Carriere  * Most IRQ bindings include a flags cell as part of the IRQ specifier.
6*12941fdcSEtienne Carriere  * In most cases, the format of the flags cell uses the standard values
7*12941fdcSEtienne Carriere  * defined in this header.
8*12941fdcSEtienne Carriere  */
9*12941fdcSEtienne Carriere 
10*12941fdcSEtienne Carriere #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
11*12941fdcSEtienne Carriere #define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
12*12941fdcSEtienne Carriere 
13*12941fdcSEtienne Carriere #define IRQ_TYPE_NONE		0
14*12941fdcSEtienne Carriere #define IRQ_TYPE_EDGE_RISING	1
15*12941fdcSEtienne Carriere #define IRQ_TYPE_EDGE_FALLING	2
16*12941fdcSEtienne Carriere #define IRQ_TYPE_EDGE_BOTH	(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
17*12941fdcSEtienne Carriere #define IRQ_TYPE_LEVEL_HIGH	4
18*12941fdcSEtienne Carriere #define IRQ_TYPE_LEVEL_LOW	8
19*12941fdcSEtienne Carriere 
20*12941fdcSEtienne Carriere #endif
21