mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] dt-bindings: add ARM GIC
@ 2014-01-25 20:15 Lucas Stach
  2014-01-25 20:15 ` [PATCH 2/4] dt-bindings: add Tegra GPIO Lucas Stach
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lucas Stach @ 2014-01-25 20:15 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 include/dt-bindings/interrupt-controller/arm-gic.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 include/dt-bindings/interrupt-controller/arm-gic.h

diff --git a/include/dt-bindings/interrupt-controller/arm-gic.h b/include/dt-bindings/interrupt-controller/arm-gic.h
new file mode 100644
index 0000000..1ea1b70
--- /dev/null
+++ b/include/dt-bindings/interrupt-controller/arm-gic.h
@@ -0,0 +1,22 @@
+/*
+ * This header provides constants for the ARM GIC.
+ */
+
+#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
+#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
+
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/* interrupt specific cell 0 */
+
+#define GIC_SPI 0
+#define GIC_PPI 1
+
+/*
+ * Interrupt specifier cell 2.
+ * The flaggs in irq.h are valid, plus those below.
+ */
+#define GIC_CPU_MASK_RAW(x) ((x) << 8)
+#define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
+
+#endif
-- 
1.8.4.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-27  8:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-25 20:15 [PATCH 1/4] dt-bindings: add ARM GIC Lucas Stach
2014-01-25 20:15 ` [PATCH 2/4] dt-bindings: add Tegra GPIO Lucas Stach
2014-01-25 20:15 ` [PATCH 3/4] dt-bindings: add Tegra CAR Lucas Stach
2014-01-25 20:15 ` [PATCH 4/4] ARM: dts: pull in complete DTs from Linux 3.13 Lucas Stach
2014-01-27  8:22 ` [PATCH 1/4] dt-bindings: add ARM GIC Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox