Skip to content

Commit 295d13c

Browse files
carlocaionenashif
authored andcommitted
dt-bindings: gic: Fix conflicting flags
Fix conflicting flags between IRQ_TYPE_EDGE and IRQ_ZERO_LATENCY. Signed-off-by: Carlo Caione <[email protected]>
1 parent 74cc8be commit 295d13c

File tree

1 file changed

+5
-2
lines changed
  • include/dt-bindings/interrupt-controller

1 file changed

+5
-2
lines changed

include/dt-bindings/interrupt-controller/arm-gic.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef __DT_BINDING_ARM_GIC_H
77
#define __DT_BINDING_ARM_GIC_H
88

9+
#include <sys/util_macro.h>
10+
911
/* CPU Interrupt numbers */
1012
#define GIC_INT_VIRT_MAINT 25
1113
#define GIC_INT_HYP_TIMER 26
@@ -15,8 +17,9 @@
1517
#define GIC_INT_NS_PHYS_TIMER 30
1618
#define GIC_INT_LEGACY_IRQ 31
1719

18-
#define IRQ_TYPE_LEVEL 0x0
19-
#define IRQ_TYPE_EDGE 0x1
20+
/* BIT(0) reserved for IRQ_ZERO_LATENCY */
21+
#define IRQ_TYPE_LEVEL BIT(1)
22+
#define IRQ_TYPE_EDGE BIT(2)
2023

2124
#define GIC_SPI 0x0
2225
#define GIC_PPI 0x1

0 commit comments

Comments
 (0)