From patchwork Sat Jan 26 15:38:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E772191E for ; Sat, 26 Jan 2019 15:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6A732DDB6 for ; Sat, 26 Jan 2019 15:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAB262DE54; Sat, 26 Jan 2019 15:41:00 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24A8B2DDB6 for ; Sat, 26 Jan 2019 15:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbfAZPk7 (ORCPT ); Sat, 26 Jan 2019 10:40:59 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25411 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfAZPk7 (ORCPT ); Sat, 26 Jan 2019 10:40:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548517222; cv=none; d=zoho.com; s=zohoarc; b=WtsC50LBz9XFM9Qjo6XVlvX6Jw7eWScq93q+QIF4+C8rqsrWz/kP2hibXL+bcCfR2fBluJwyCnINY7V9B+RwKwDPFz0fwsr2yInMVV6GOp6I3tv4c6IXRmGYnm8BP8VcSeHXrVc7kl+pLoFuBq6Xl+jF4CgJqNmpiyIt8iHx80Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548517222; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=ZMQQb6RMo6Ql1KTU7vlFdr3a00HbQD3abxu6KZlZ8q4=; b=IP9bJbPjbhAWyNK2ysPUqocZolUTnOQZ01sK9DBFzgjobfnhzZE4W+IzQUWlG6pl/1G+JaSAjHvQpFFVQsETqhYfIvxlx9dk0HZZw5jHmJpUp+I2qHEVZKiXLNnarAP3GGNAV6W/WtckVvC82XBwAt32bSjufkcujExvNzbuM+4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=WBd9tfbczSNfEE177UR7jpOroTlfw3t456XAekneGuF44YusKUZVsPbT0Do8ylIOAjyVaeSIDqf5 EZuEbBMYuRZKCqXD15HE3f0ZB3XkbdCZCxs0UbG4NXDjFjU5n44F DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548517222; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=3387; bh=ZMQQb6RMo6Ql1KTU7vlFdr3a00HbQD3abxu6KZlZ8q4=; b=cQ7o13w8W9z/bU/EyWtbCrt9uW/7XkqrJxzvYelHMyLAs40AkdkB4pNCxqb4K0Uk d6idzV6vKBJxFUg2DbqCBu9+idTeaN+/7d3a8U9pMARL3BSyNurD84KiVtKmh/GRBdY RZsE3sMK72nB2THMrGTOV6sffxwZ3MsYxcBTOpjI= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548517220681724.8545439013658; Sat, 26 Jan 2019 07:40:20 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH 1/4] Irqchip: Ingenic: Change interrupt handling form cascade to chained_irq. Date: Sat, 26 Jan 2019 23:38:40 +0800 Message-Id: <1548517123-60058-2-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The interrupt handling method is changed from old-style cascade to chained_irq which is more appropriate. Also, it can process the corner situation that more than one irq is coming to a single chip at the same time. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 49 ++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 2ff0898..2713ec4 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009-2010, Lars-Peter Clausen - * JZ4740 platform IRQ support - * - * 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; either version 2 of the License, or (at your - * option) any later version. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 675 Mass Ave, Cambridge, MA 02139, USA. - * + * Ingenic XBurst platform IRQ support */ #include @@ -19,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -41,22 +33,35 @@ struct ingenic_intc_data { #define JZ_REG_INTC_PENDING 0x10 #define CHIP_SIZE 0x20 -static irqreturn_t intc_cascade(int irq, void *data) +static void ingenic_chained_handle_irq(struct irq_desc *desc) { - struct ingenic_intc_data *intc = irq_get_handler_data(irq); - uint32_t irq_reg; + struct ingenic_intc_data *intc = irq_desc_get_handler_data(desc); + struct irq_chip *chip = irq_desc_get_chip(desc); + bool have_irq = false; + u32 pending; unsigned i; + chained_irq_enter(chip, desc); for (i = 0; i < intc->num_chips; i++) { - irq_reg = readl(intc->base + (i * CHIP_SIZE) + + pending = readl(intc->base + (i * CHIP_SIZE) + JZ_REG_INTC_PENDING); - if (!irq_reg) + if (!pending) continue; - generic_handle_irq(__fls(irq_reg) + (i * 32) + JZ4740_IRQ_BASE); + have_irq = true; + while (pending) { + int bit = __ffs(pending); + + generic_handle_irq(__fls(pending) + (i * 32) + + JZ4740_IRQ_BASE); + pending &= ~BIT(bit); + } } - return IRQ_HANDLED; + if (!have_irq) + spurious_interrupt(); + + chained_irq_exit(chip, desc); } static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) @@ -79,11 +84,6 @@ void ingenic_intc_irq_resume(struct irq_data *data) intc_irq_set_mask(gc, gc->mask_cache); } -static struct irqaction intc_cascade_action = { - .handler = intc_cascade, - .name = "SoC intc cascade interrupt", -}; - static int __init ingenic_intc_of_init(struct device_node *node, unsigned num_chips) { @@ -148,7 +148,8 @@ static int __init ingenic_intc_of_init(struct device_node *node, if (!domain) pr_warn("unable to register IRQ domain\n"); - setup_irq(parent_irq, &intc_cascade_action); + irq_set_chained_handler_and_data(parent_irq, + ingenic_chained_handle_irq, intc); return 0; out_unmap_irq: From patchwork Sat Jan 26 15:38:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF73A13BF for ; Sat, 26 Jan 2019 15:41:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E8682DD5B for ; Sat, 26 Jan 2019 15:41:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92D162DE2C; Sat, 26 Jan 2019 15:41:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 416512DD5B for ; Sat, 26 Jan 2019 15:41:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbfAZPlU (ORCPT ); Sat, 26 Jan 2019 10:41:20 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25420 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfAZPlU (ORCPT ); Sat, 26 Jan 2019 10:41:20 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548517228; cv=none; d=zoho.com; s=zohoarc; b=IMmfPZQvmuKTOrkZDdvb/HcmOwQ0EsigLD2NqEENUFltcqZ7z6LQQuGbOfAAPakdMcMtX4yQkemF906jQY8t7Mp74s1XvXc+SB45bKz6KFjTJcNWzeXP9fPTxG1SU6sXUwm2S8BMrmjVP8Iqoj3NN04bv2VG6MGWQiSYxE53s8I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548517228; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=CIR4N9NKNS2/If32h/96P6I9JiAh8bR768I9OBpTwkA=; b=dc6B/6wMwEqM/B4cx4eg/2lHeePAIdmS15v9QW6HNa0/D+wq1Phm3wpEYpVsgY06lJz6d2tIVAxThgHX1cl07irYswov5HOA0dYDTe1OrN7x67A9TuDRmJjOxn7GzWP+iXyZwJrxQAYWYKxx3pQG8LbeC2qjTqY8P4EzoPv8/Vo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=DQ/y0ZHlMegD9tlpozkvglxMRvN9MbPYmnUz4w1gQO8FnUQchH36lN26wnenCQW75EcamjMV9Dpn DNz+1CcEDZJ+TAZZtsF6Eb6TMQ9he5fRNCjF9voz0uDImmkaa1tY DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548517228; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1406; bh=CIR4N9NKNS2/If32h/96P6I9JiAh8bR768I9OBpTwkA=; b=XU9M3dUAD/1zNxqrVup8csyy6pwmLb+dG7QmqpXum8tPekmW+wj7mCJRlhmXQqlY 2s2l0O5pztcT6aYHL6Y2x/RxuLzPJ9eannv4SiU/cS0YyBw8ri5sxPW/6COVJlvOrjV /6DOrj7vSxnW3rGlNDmg5F/uTITzWnlUaFuUpwl4= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548517227851231.18598983505547; Sat, 26 Jan 2019 07:40:27 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH 2/4] Irqchip: Ingenic: Unify the function name prefix to "ingenic_intc_". Date: Sat, 26 Jan 2019 23:38:41 +0800 Message-Id: <1548517123-60058-3-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For the sake of uniform style, function "intc_irq_set_mask" is changed to "ingenic_intc_intc_irq_set_mask". Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 2713ec4..69be219 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -64,7 +64,8 @@ static void ingenic_chained_handle_irq(struct irq_desc *desc) chained_irq_exit(chip, desc); } -static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) +static void ingenic_intc_irq_set_mask(struct irq_chip_generic *gc, + uint32_t mask) { struct irq_chip_regs *regs = &gc->chip_types->regs; @@ -75,13 +76,13 @@ static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) void ingenic_intc_irq_suspend(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->wake_active); + ingenic_intc_irq_set_mask(gc, gc->wake_active); } void ingenic_intc_irq_resume(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->mask_cache); + ingenic_intc_irq_set_mask(gc, gc->mask_cache); } static int __init ingenic_intc_of_init(struct device_node *node, From patchwork Sat Jan 26 15:38:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782493 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3738C1515 for ; Sat, 26 Jan 2019 15:41:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22EB42DD5B for ; Sat, 26 Jan 2019 15:41:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 144FB2DE2C; Sat, 26 Jan 2019 15:41:44 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE2552DD5B for ; Sat, 26 Jan 2019 15:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726106AbfAZPli (ORCPT ); Sat, 26 Jan 2019 10:41:38 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25431 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfAZPli (ORCPT ); Sat, 26 Jan 2019 10:41:38 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548517236; cv=none; d=zoho.com; s=zohoarc; b=S5txlIsSx1Nm7Q2J8jxFFbX2/XKxH4yPHIwngjpEQ2qn+6cwzBbFrtYArWCyDoFPmPt+JxGMJ6uL0P3OCbAs+/hgGW6eQpk7ySBcB/xaHgqpjhhyU5iyBBB6ZyED3KaPBi5UfI0vvO0mLnZ1kyPGQZiStlEoHZhhHNcVnNRILPY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548517236; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=46tXNgI05PgEtGevE0wr+wI42b/WbtGWxI0TXl+yTPU=; b=e71vRRT/fe2k95W/ZNTEQAHniEx+vps2h4masZ0zVmhxYcznBJvze3agbAcoX0yHMXbve4vThC5NXuRhbjYTRLvQui3e0zLd/ktWwAP9CcWSiqP72JVeiKxGlV9oLROQMChlFa13LbDtgGk3XR0AEviU3PtrCLORJM2EQ6MAgxk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=IbHvaTDR9v5iGg2YmOM6yucYZf4B9fKiwpqGHue2bh3o74c3xcuKYfYji0LbB+mfRLss1gEv9bbK LRKfSbTfM3MOJJwyFLvfOB3KwlYEynDRtkrlVDnZC5gug2Kdq5Nb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548517236; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=889; bh=46tXNgI05PgEtGevE0wr+wI42b/WbtGWxI0TXl+yTPU=; b=kMWqEwHjf8T6kVc39OYLthvHZkiXRwpBkFSp+iTgO8oYK9bvUz3B2bV3P+UmDdhF 8ug32PCjXcKIS7pOobIkmiWyhFSt/Vk2zlaNE6Vg1dTYCZYSAltZqMdTt+gcNGfdPT5 6NdKwXwCUUbHAgbWn0NgPhbNcSX3wW4VDEbo4bS4= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548517234537416.8434024978051; Sat, 26 Jan 2019 07:40:34 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH 3/4] Irqchip: Ingenic: Add support for the X1000. Date: Sat, 26 Jan 2019 23:38:42 +0800 Message-Id: <1548517123-60058-4-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the irq-ingenic driver on the X1000 Soc. X1000 is a 1.0GHz processor for IoT. It has MIPS32 XBurst RISC core with double precision hardware float point unit. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 69be219..0b643c7 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -177,3 +177,4 @@ static int __init intc_2chip_of_init(struct device_node *node, IRQCHIP_DECLARE(jz4770_intc, "ingenic,jz4770-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4775_intc, "ingenic,jz4775-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4780_intc, "ingenic,jz4780-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(x1000_intc, "ingenic,x1000-intc", intc_2chip_of_init); From patchwork Sat Jan 26 15:38:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 10782495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 718F291E for ; Sat, 26 Jan 2019 15:41:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EB9A2DD5B for ; Sat, 26 Jan 2019 15:41:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51F212DE2C; Sat, 26 Jan 2019 15:41:59 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01FD02DD5B for ; Sat, 26 Jan 2019 15:41:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726209AbfAZPl6 (ORCPT ); Sat, 26 Jan 2019 10:41:58 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25440 "EHLO sender-pp-092.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfAZPl6 (ORCPT ); Sat, 26 Jan 2019 10:41:58 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1548517244; cv=none; d=zoho.com; s=zohoarc; b=Q5GFpBRCG4nJuTtDdnjZKmfAr3wwbOK0SdbP6NPx3YcRu6iycxXjki7+XL+fc5vUr2/dt2wunuMKOF7I1TM6tK2pZH0mvuidpCGUa5YyWW0ChYGDWEbj3WhQTMP54ppEzZm9F2rW8s5+mu/mseouKwY1oYv4uHMU3G8wMc6Qitc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1548517244; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=N6teaqVxhuf2qKCXnWrscSgmJF+o+tkdXKbnyxIiobI=; b=cl5Tw5WhWQuZBT1O/oDxCcsGa1UJ1vUWYS9I+kPbOWwZDYGb2p0fE1CJyRx1a98EvTe4AW+xejsl9U3tppC33FV6zYDKId52UsCqRmxhGeAoStlczWLc717G1T9zO8MxTcyyxCZN8TAoEtNQavzYTjwb/nEAa3zl9A3Cqj6Tzn4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=Ffdd3MS5rHsF3JQPfYUVdIpkgN0se8Ka8wKwa0vrY77dJufDoMn2ln1JZ1WjCfVP19ac9mcyrDks jeufBM7YesB6PIn2AGXmSe+ZHvQrg5y9q3L845HpKhXePc663SfD DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548517244; s=default; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1059; bh=N6teaqVxhuf2qKCXnWrscSgmJF+o+tkdXKbnyxIiobI=; b=t8tTbEgps0mIV+y0b0SiXl4sBg1Upugyso5NQm1Dhds8drNirGATTOzJn+a/sr/U yMdm8q0r9ArmFuQde6IDpfNgJQmhcTqR8OTr2xVb+KPpqGYp8vUFEakgPSOWhOtOZo0 dfBfaCu77/f0VE2uv9GSLlF69cyn2EZ2jjjl2q3s= Received: from localhost.localdomain (171.221.112.7 [171.221.112.7]) by mx.zohomail.com with SMTPS id 1548517242318369.82441176351415; Sat, 26 Jan 2019 07:40:42 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, mark.rutland@arm.com, marc.zyngier@arm.com, jason@lakedaemon.net, tglx@linutronix.de, syq@debian.org, jiaxun.yang@flygoat.com, 772753199@qq.com Subject: [PATCH 4/4] Irqchip: Ingenic: Add support for the X1000. Date: Sat, 26 Jan 2019 23:38:43 +0800 Message-Id: <1548517123-60058-5-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the irq-ingenic driver on the X1000 Soc. X1000 is a 1.0GHz processor for IoT. It has MIPS32 XBurst RISC core with double precision hardware float point unit. Signed-off-by: Zhou Yanjie --- Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt index d4373d0..fa69b3f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt @@ -8,6 +8,7 @@ Required properties: ingenic,jz4770-intc ingenic,jz4775-intc ingenic,jz4780-intc + ingenic,x1000-intc - reg : Specifies base physical address and size of the registers. - interrupt-controller : Identifies the node as an interrupt controller - #interrupt-cells : Specifies the number of cells needed to encode an