include/de-bindings: create a irq.h for devicetree
This file define the interrupt trigger mode It's can be used for parsing devicetree interrupt-control flag setting. Signed-off-by: Cheryl Su <Cheryl.su@ite.com.tw>
This commit is contained in:
parent
46efefbbe5
commit
54ef3c55bb
1 changed files with 16 additions and 0 deletions
16
include/dt-bindings/irq.h
Normal file
16
include/dt-bindings/irq.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2020 ITE Corporation. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __DT_BINDING_IRQ_H
|
||||
#define __DT_BINDING_IRQ_H
|
||||
|
||||
#define IRQ_TYPE_NONE 0
|
||||
#define IRQ_TYPE_EDGE_RISING 1
|
||||
#define IRQ_TYPE_EDGE_FALLING 2
|
||||
#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
|
||||
#define IRQ_TYPE_LEVEL_HIGH 4
|
||||
#define IRQ_TYPE_LEVEL_LOW 8
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue