From patchwork Sat Mar 5 18:02:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sperl X-Patchwork-Id: 8511391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5BB66C0553 for ; Sat, 5 Mar 2016 18:05:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61F0C202A1 for ; Sat, 5 Mar 2016 18:05:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F5E6201F5 for ; Sat, 5 Mar 2016 18:05:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1acGY9-0006hq-Ky; Sat, 05 Mar 2016 18:03:33 +0000 Received: from 212-186-180-163.dynamic.surfer.at ([212.186.180.163] helo=cgate.sperl.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1acGY1-0006Wt-8O; Sat, 05 Mar 2016 18:03:26 +0000 Received: from rasp3a.intern.sperl.org (account martin@sperl.org [10.10.10.43] verified) by sperl.org (CommuniGate Pro SMTP 6.1.2) with ESMTPSA id 6405744; Sat, 05 Mar 2016 18:02:58 +0000 From: kernel@martin.sperl.org To: Thomas Gleixner , Rob Herring , Stephen Warren , Lee Jones , Eric Anholt , Russell King , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: bcm2835: add defines for each interrupt Date: Sat, 5 Mar 2016 18:02:50 +0000 Message-Id: <1457200973-11662-2-git-send-email-kernel@martin.sperl.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1457200973-11662-1-git-send-email-kernel@martin.sperl.org> References: <1457200973-11662-1-git-send-email-kernel@martin.sperl.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160305_100325_808362_DFD31D04 X-CRM114-Status: UNSURE ( 7.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Sperl MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Martin Sperl Define names for all interrupt "magic numbers" so that they can get used inside the device tree. Signed-off-by: Martin Sperl --- 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 */ + +/* 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