summaryrefslogtreecommitdiff
path: root/include/linux/irqchip/arm-gic-common.h
diff options
context:
space:
mode:
authorJulien Thierry <julien.thierry@arm.com>2018-08-28 18:51:18 +0300
committerMarc Zyngier <marc.zyngier@arm.com>2018-10-03 13:30:14 +0300
commit2130b789b3ef6a518b9c9c6f245642620e2b0c0c (patch)
treeec3e515d3ba0dc1a022762f634658f0fa2ce59c2 /include/linux/irqchip/arm-gic-common.h
parent342677d70ab92142b483fc68bcade74cdf969785 (diff)
downloadlinux-2130b789b3ef6a518b9c9c6f245642620e2b0c0c.tar.xz
irqchip/gic: Unify GIC priority definitions
LPIs use the same priority value as other GIC interrupts. Make the GIC default priority definition visible to ITS implementation and use this same definition for LPI priorities. Tested-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Julien Thierry <julien.thierry@arm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/linux/irqchip/arm-gic-common.h')
-rw-r--r--include/linux/irqchip/arm-gic-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/irqchip/arm-gic-common.h b/include/linux/irqchip/arm-gic-common.h
index 0a83b4379f34..9a1a479a2bf4 100644
--- a/include/linux/irqchip/arm-gic-common.h
+++ b/include/linux/irqchip/arm-gic-common.h
@@ -13,6 +13,12 @@
#include <linux/types.h>
#include <linux/ioport.h>
+#define GICD_INT_DEF_PRI 0xa0
+#define GICD_INT_DEF_PRI_X4 ((GICD_INT_DEF_PRI << 24) |\
+ (GICD_INT_DEF_PRI << 16) |\
+ (GICD_INT_DEF_PRI << 8) |\
+ GICD_INT_DEF_PRI)
+
enum gic_type {
GIC_V2,
GIC_V3,