From patchwork Mon Apr 24 16:00:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9696785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3392B603F2 for ; Mon, 24 Apr 2017 16:46:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21D27267EC for ; Mon, 24 Apr 2017 16:46:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12A41283F9; Mon, 24 Apr 2017 16:46:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AC7DD267EC for ; Mon, 24 Apr 2017 16:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zdeCahGglj46qV+gwsfuWjUcweLiFQLWk3hn5xU6T+U=; b=Noqc0jjFLPEmSHGr8SNCA3TAI6 6iMgvl6mR5eg2EOTFT1aMre/B6utkx9Kz/FRLonbeZG01cKWcz0Syxhn+ZLPXIHh6SdE2NlR19Up7 b3OPWizB3IBsCBeMlIrK/wP5/Loja7Ipl0DEDIfIA1iHUeVeQobqy/Sv8e1v899Q1F4gvHABvLVnl jn6esRq58Vw9aWlC5Gg9fC0exNPnBH8sHLAFyzYxWS50YdGbNMwttXYfGsHvEy5hQ8lImmjUxdNDg R1+OR9X3D7coXMVeElPwKqQlVamKs3XbMXODoyN2RbO5RQVWrcclWhGHPbRtYKClJVc0z2S5KFdqt SYXDmruw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d2h8Y-00069u-G2; Mon, 24 Apr 2017 16:46:54 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2h7i-0005DL-P0 for linux-arm-kernel@bombadil.infradead.org; Mon, 24 Apr 2017 16:46:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9un/4CrEfj6ZwUZkNXDrA4q48CE2rfnwTlQlB/7FrAM=; b=zoe3j7raKHveoB/qorylOEj7r 4xuyulEHCQIgaCUZalZLf7b4Ost8sUruVM19ygr2cd6IVpjZG/kar3zaqmsIFrU0JtifXmhhQ1dFQ 8m5GCAXuqOoIrogIuU8O8xhvqVJZKtCGS6BI3h+xvGtzyE8u1MrgS/9fk1oUGedatcI0GYtwBIBcn 0MDZgZbJjanRFMgdJLTC9FKEV3jWg7uegOtj/5nn3dHRDPc0G5mi91MUm05hh73PjIQcngbytumi0 NxjdQPQm89XS93laXJG+Wx2TovUSW3ticeWoba27OtywfGdi83TCP6Sz5LbfcPfO+D0OEeppXl/t8 XKIf54zDQ==; Received: from nov-007-i458.relay.mailchannels.net ([46.232.183.12]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2gSl-0000vv-8m for linux-arm-kernel@lists.infradead.org; Mon, 24 Apr 2017 16:03:45 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7CE29203C6A; Mon, 24 Apr 2017 16:02:42 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.137.157]) by relay.mailchannels.net (Postfix) with ESMTPA id E2AA0204944; Mon, 24 Apr 2017 16:02:39 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.63.14]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.2); Mon, 24 Apr 2017 16:02:41 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Irritate-Decisive: 10a848c07ddfe226_1493049761636_2331407940 X-MC-Loop-Signature: 1493049761636:166587232 X-MC-Ingress-Time: 1493049761636 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 013EF48C31; Mon, 24 Apr 2017 16:02:31 +0000 (UTC) From: Icenowy Zheng To: Thomas Gleixner , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Lee Jones , Liam Girdwood Subject: [PATCH v4 03/10] irqchip/sunxi-nmi: add support for the NMI in A64 R_INTC Date: Tue, 25 Apr 2017 00:00:56 +0800 Message-Id: <20170424160103.9447-4-icenowy@aosc.io> In-Reply-To: <20170424160103.9447-1-icenowy@aosc.io> References: <20170424160103.9447-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170424_120344_254898_1E3F021A X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for the newly imported compatible for the A64 R_INTC in irq-sunxi-nmi driver Signed-off-by: Icenowy Zheng --- New patch in v4, which is part of NMI refactor. 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 668730c5cb66..5f7408b1cd4d 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi-nmi.c @@ -56,6 +56,12 @@ static struct sunxi_sc_nmi_reg_offs sun9i_reg_offs = { .enable = 0x04, }; +static struct sunxi_sc_nmi_reg_offs sun50i_reg_offs = { + .ctrl = 0x0c, + .pend = 0x10, + .enable = 0x40, +}; + static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, u32 val) { @@ -220,3 +226,10 @@ static int __init sun9i_nmi_irq_init(struct device_node *node, return sunxi_sc_nmi_irq_init(node, &sun9i_reg_offs); } IRQCHIP_DECLARE(sun9i_nmi, "allwinner,sun9i-a80-nmi", sun9i_nmi_irq_init); + +static int __init sun50i_nmi_irq_init(struct device_node *node, + struct device_node *parent) +{ + return sunxi_sc_nmi_irq_init(node, &sun50i_reg_offs); +} +IRQCHIP_DECLARE(sun50i_nmi, "allwinner,sun50i-a80-nmi", sun50i_nmi_irq_init);