blob: 59811eeb522f191ffbb3aaa043cbd75633b42855 [file] [log] [blame]
Yann Gautierf1b6b012021-05-25 18:14:24 +02001/*
Boyan Karatotev270d5c52025-02-11 14:41:18 +00002 * Copyright (c) 2021-2025, Arm Limited and Contributors. All rights reserved.
Yann Gautierf1b6b012021-05-25 18:14:24 +02003 *
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 Karatotev270d5c52025-02-11 14:41:18 +000016#define LEVEL 0
17#define EDGE 2
18
Yann Gautierf1b6b012021-05-25 18:14:24 +020019#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