13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 23d0407baSopenharmony_ci/* 33d0407baSopenharmony_ci * This header provides constants for most IRQ bindings. 43d0407baSopenharmony_ci * 53d0407baSopenharmony_ci * Most IRQ bindings include a flags cell as part of the IRQ specifier. 63d0407baSopenharmony_ci * In most cases, the format of the flags cell uses the standard values 73d0407baSopenharmony_ci * defined in this header. 83d0407baSopenharmony_ci */ 93d0407baSopenharmony_ci 103d0407baSopenharmony_ci#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 113d0407baSopenharmony_ci#define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H 123d0407baSopenharmony_ci 133d0407baSopenharmony_ci#define IRQ_TYPE_NONE 0 143d0407baSopenharmony_ci#define IRQ_TYPE_EDGE_RISING 1 153d0407baSopenharmony_ci#define IRQ_TYPE_EDGE_FALLING 2 163d0407baSopenharmony_ci#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) 173d0407baSopenharmony_ci#define IRQ_TYPE_LEVEL_HIGH 4 183d0407baSopenharmony_ci#define IRQ_TYPE_LEVEL_LOW 8 193d0407baSopenharmony_ci 203d0407baSopenharmony_ci#endif 21