From: Chen-Yu Tsai <wens@csie.org>
To: Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>,
Marc Zyngier <marc.zyngier@arm.com>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@googlegroups.com
Subject: [PATCH 3/4] irqchip/sunxi-nmi: Support sun9i A80 NMI controller
Date: Thu, 3 Dec 2015 16:20:12 +0800 [thread overview]
Message-ID: <1449130813-22400-4-git-send-email-wens@csie.org> (raw)
In-Reply-To: <1449130813-22400-1-git-send-email-wens@csie.org>
The A80 moves the NMI controller into the PRCM address space, and also
rearranges the registers.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
drivers/irqchip/irq-sunxi-nmi.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c
index 4ef178078e5b..0820f67cc9a7 100644
--- a/drivers/irqchip/irq-sunxi-nmi.c
+++ b/drivers/irqchip/irq-sunxi-nmi.c
@@ -50,6 +50,12 @@ static struct sunxi_sc_nmi_reg_offs sun6i_reg_offs = {
.enable = 0x34,
};
+static struct sunxi_sc_nmi_reg_offs sun9i_reg_offs = {
+ .ctrl = 0x00,
+ .pend = 0x08,
+ .enable = 0x04,
+};
+
static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off,
u32 val)
{
@@ -207,3 +213,10 @@ static int __init sun7i_sc_nmi_irq_init(struct device_node *node,
return sunxi_sc_nmi_irq_init(node, &sun7i_reg_offs);
}
IRQCHIP_DECLARE(sun7i_sc_nmi, "allwinner,sun7i-a20-sc-nmi", sun7i_sc_nmi_irq_init);
+
+static int __init sun9i_nmi_irq_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return sunxi_sc_nmi_irq_init(node, &sun9i_reg_offs);
+}
+IRQCHIP_DECLARE(sun9i_nmi, "allwinner,sun9i-a80-nmi", sun9i_nmi_irq_init);
--
2.6.2
next prev parent reply other threads:[~2015-12-03 8:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 8:20 [PATCH 0/4] ARM: sun9i: Support Allwinner " Chen-Yu Tsai
2015-12-03 8:20 ` [PATCH 1/4] irqchip/sunxi-nmi: Rename binding doc filename to allwinner,sunxi-nmi.txt Chen-Yu Tsai
2015-12-03 9:44 ` Maxime Ripard
2015-12-03 8:20 ` [PATCH 2/4] irqchip/sunxi-nmi: Add sun9i-a80 variant to binding doc Chen-Yu Tsai
2015-12-03 9:44 ` Maxime Ripard
2015-12-03 8:20 ` Chen-Yu Tsai [this message]
2015-12-03 9:45 ` [PATCH 3/4] irqchip/sunxi-nmi: Support sun9i A80 NMI controller Maxime Ripard
2015-12-03 8:20 ` [PATCH 4/4] ARM: dts: sun9i: Add NMI controller device node Chen-Yu Tsai
2015-12-03 9:46 ` Maxime Ripard
2015-12-03 8:43 ` [linux-sunxi] [PATCH 0/4] ARM: sun9i: Support Allwinner A80 NMI controller Hans de Goede
2015-12-03 12:01 ` Jason Cooper
2015-12-03 13:14 ` Jason Cooper
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=1449130813-22400-4-git-send-email-wens@csie.org \
--to=wens@csie.org \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=marc.zyngier@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®