devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org
To: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
	Lee Jones <lee-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>,
	Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: Martin Sperl <kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>
Subject: [PATCH 2/5] ARM: bcm2835: add defines for each interrupt
Date: Sat,  5 Mar 2016 18:02:50 +0000	[thread overview]
Message-ID: <1457200973-11662-2-git-send-email-kernel@martin.sperl.org> (raw)
In-Reply-To: <1457200973-11662-1-git-send-email-kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>

From: Martin Sperl <kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>

Define names for all interrupt "magic numbers" so that they
can get used inside the device tree.

Signed-off-by: Martin Sperl <kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>
---
 include/dt-bindings/interrupt-controller/bcm2835.h | 95 ++++++++++++++++++++++
 1 file changed, 95 insertions(+)
 create mode 100644 include/dt-bindings/interrupt-controller/bcm2835.h

diff --git a/include/dt-bindings/interrupt-controller/bcm2835.h b/include/dt-bindings/interrupt-controller/bcm2835.h
new file mode 100644
index 0000000..b8723f6
--- /dev/null
+++ b/include/dt-bindings/interrupt-controller/bcm2835.h
@@ -0,0 +1,95 @@
+/*
+ * Copyright (C) 2016 Martin Sperl
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation version 2.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/* the interrupt tables in the form <BANK> <ID> */
+
+/* ARM interrupts - bank 0 */
+#define BCM2835_INT_ARM_TIMER		0 0
+#define BCM2835_INT_ARM_MAILBOX		0 1
+#define BCM2835_INT_ARM_DORBELL0	0 2
+#define BCM2835_INT_ARM_DORBELL1	0 3
+#define BCM2835_INT_ARM_VPU0_HALTED	0 4
+#define BCM2835_INT_ARM_VPU1_HALTED	0 5
+#define BCM2835_INT_ARM_ILLEGAL_TYPE0	0 6
+#define BCM2835_INT_ARM_ILLEGAL_TYPE0	0 6
+
+/* peripheral interrupts - bank 1 */
+#define BCM2835_INT_TIMER0		1 0
+#define BCM2835_INT_TIMER1		1 1
+#define BCM2835_INT_TIMER2		1 2
+#define BCM2835_INT_TIMER3		1 3
+#define BCM2835_INT_CODEC0		1 4
+#define BCM2835_INT_CODEC1		1 5
+#define BCM2835_INT_CODEC2		1 6
+#define BCM2835_INT_JPEG		1 7
+#define BCM2835_INT_ISP			1 8
+#define BCM2835_INT_USB			1 9
+#define BCM2835_INT_3D			1 10
+#define BCM2835_INT_TRANSPOSER		1 11
+#define BCM2835_INT_MULTICORESYNC0	1 12
+#define BCM2835_INT_MULTICORESYNC1	1 13
+#define BCM2835_INT_MULTICORESYNC2	1 14
+#define BCM2835_INT_MULTICORESYNC3	1 15
+#define BCM2835_INT_DMA0		1 16
+#define BCM2835_INT_DMA1		1 17
+#define BCM2835_INT_DMA2		1 18
+#define BCM2835_INT_DMA3		1 19
+#define BCM2835_INT_DMA4		1 20
+#define BCM2835_INT_DMA5		1 21
+#define BCM2835_INT_DMA6		1 22
+#define BCM2835_INT_DMA7		1 23
+#define BCM2835_INT_DMA8		1 24
+#define BCM2835_INT_DMA9		1 25
+#define BCM2835_INT_DMA10		1 26
+#define BCM2835_INT_DMA11_12_13_14	1 27
+#define BCM2835_INT_DMA_ALL		1 28
+#define BCM2835_INT_AUX			1 29
+#define BCM2835_INT_AUX_UART		BCM2835_INT_AUX
+#define BCM2835_INT_AUX_SPI1		BCM2835_INT_AUX
+#define BCM2835_INT_AUX_SPI2		BCM2835_INT_AUX
+#define BCM2835_INT_ARM			1 30
+#define BCM2835_INT_DMA_VPU		1 31
+
+/* peripheral interrupts - bank 2 */
+#define BCM2835_INT_HOSTPORT		2 0
+#define BCM2835_INT_VIDEOSCALER		2 1
+#define BCM2835_INT_CCP2TX		2 2
+#define BCM2835_INT_SDC			2 3
+#define BCM2835_INT_DSI0		2 4
+#define BCM2835_INT_AVE			2 5
+#define BCM2835_INT_CAM0		2 6
+#define BCM2835_INT_CAM1		2 7
+#define BCM2835_INT_HDMI0		2 8
+#define BCM2835_INT_HDMI1		2 9
+#define BCM2835_INT_PIXELVALVE1		2 10
+#define BCM2835_INT_I2C_SLV		2 11
+#define BCM2835_INT_DSI1		2 12
+#define BCM2835_INT_PWA0		2 13
+#define BCM2835_INT_PWA1		2 14
+#define BCM2835_INT_CPR			2 15
+#define BCM2835_INT_SMI			2 16
+#define BCM2835_INT_GPIO0		2 17
+#define BCM2835_INT_GPIO1		2 18
+#define BCM2835_INT_GPIO2		2 19
+#define BCM2835_INT_GPIO3		2 20
+#define BCM2835_INT_I2C			2 21
+#define BCM2835_INT_SPI			2 22
+#define BCM2835_INT_I2SPCM		2 23
+#define BCM2835_INT_SDIO		2 24
+#define BCM2835_INT_UART		2 25
+#define BCM2835_INT_SLIMBUS		2 26
+#define BCM2835_INT_VEC			2 27
+#define BCM2835_INT_CPG			2 28
+#define BCM2835_INT_RNG			2 29
+#define BCM2835_INT_ARSANSDIO		2 30
+#define BCM2835_INT_AVSPMON		2 31
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-03-05 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-05 18:02 [PATCH 1/5] dt/bindings: bcm2835: correct description for DMA-int kernel-TqfNSX0MhmxHKSADF0wUEw
     [not found] ` <1457200973-11662-1-git-send-email-kernel-TqfNSX0MhmxHKSADF0wUEw@public.gmane.org>
2016-03-05 18:02   ` kernel-TqfNSX0MhmxHKSADF0wUEw [this message]
2016-03-05 18:02   ` [PATCH 3/5] ARM: bcm2835: use defined INT names instead of magic numbers kernel-TqfNSX0MhmxHKSADF0wUEw
2016-03-05 18:02   ` [PATCH 4/5] ARM: bcm2835: add defines for each DREQ kernel-TqfNSX0MhmxHKSADF0wUEw
2016-03-05 18:02   ` [PATCH 5/5] ARM: bcm2835: use defined DMA_DREQ names instead of magic numbers kernel-TqfNSX0MhmxHKSADF0wUEw
2016-03-16  6:44   ` [PATCH 1/5] dt/bindings: bcm2835: correct description for DMA-int Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457200973-11662-2-git-send-email-kernel@martin.sperl.org \
    --to=kernel-tqfnsx0mhmxhksadf0wuew@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org \
    --cc=lee-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
    --cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).