xref: /arm-trusted-firmware/include/dt-bindings/interrupt-controller/irq.h (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: MIT
5*91f16700Schasinglulu  *
6*91f16700Schasinglulu  * This header provides constants for most IRQ bindings.
7*91f16700Schasinglulu  *
8*91f16700Schasinglulu  * Most IRQ bindings include a flags cell as part of the IRQ specifier.
9*91f16700Schasinglulu  * In most cases, the format of the flags cell uses the standard values
10*91f16700Schasinglulu  * defined in this header.
11*91f16700Schasinglulu  */
12*91f16700Schasinglulu 
13*91f16700Schasinglulu #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
14*91f16700Schasinglulu #define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
15*91f16700Schasinglulu 
16*91f16700Schasinglulu #define IRQ_TYPE_NONE		0
17*91f16700Schasinglulu #define IRQ_TYPE_EDGE_RISING	1
18*91f16700Schasinglulu #define IRQ_TYPE_EDGE_FALLING	2
19*91f16700Schasinglulu #define IRQ_TYPE_EDGE_BOTH	(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
20*91f16700Schasinglulu #define IRQ_TYPE_LEVEL_HIGH	4
21*91f16700Schasinglulu #define IRQ_TYPE_LEVEL_LOW	8
22*91f16700Schasinglulu 
23*91f16700Schasinglulu #endif
24