From patchwork Mon Nov 19 05:13:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 1762521 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 103EC3FCF7 for ; Mon, 19 Nov 2012 05:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751016Ab2KSFNn (ORCPT ); Mon, 19 Nov 2012 00:13:43 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:57638 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265Ab2KSFNk (ORCPT ); Mon, 19 Nov 2012 00:13:40 -0500 Received: from ayumi.akashicho.tokyo.vergenet.net (p4024-ipbfp1903kobeminato.hyogo.ocn.ne.jp [114.172.131.24]) by kirsty.vergenet.net (Postfix) with ESMTP id 88FF9267161; Mon, 19 Nov 2012 16:13:39 +1100 (EST) Received: by ayumi.akashicho.tokyo.vergenet.net (Postfix, from userid 7100) id 38667EDE6A5; Mon, 19 Nov 2012 14:13:36 +0900 (JST) From: Simon Horman To: linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Nobuhiro Iwamatsu , Magnus Damm , Simon Horman Subject: [RFC 15/15] ARM: shmobile: sh73a0: Use DT for GIC Date: Mon, 19 Nov 2012 14:13:27 +0900 Message-Id: <1353302007-31045-16-git-send-email-horms@verge.net.au> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353302007-31045-1-git-send-email-horms@verge.net.au> References: <1353302007-31045-1-git-send-email-horms@verge.net.au> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Cc: Magnus Damm Cc: Nobuhiro Iwamatsu Signed-off-by: Simon Horman --- arch/arm/mach-shmobile/intc-sh73a0.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-shmobile/intc-sh73a0.c b/arch/arm/mach-shmobile/intc-sh73a0.c index ee62349..e9b5419 100644 --- a/arch/arm/mach-shmobile/intc-sh73a0.c +++ b/arch/arm/mach-shmobile/intc-sh73a0.c @@ -151,6 +151,7 @@ error: } static const struct of_device_id irq_of_match[] __initconst = { + { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, { .compatible = "renesas,sh_intcs", .data = sh73a0_intcs_of_init }, { .compatible = "renesas,sh_intca_irq_pins", .data = sh73a0_intca_pins_of_init }, @@ -559,18 +560,18 @@ static irqreturn_t sh73a0_pint1_demux(int irq, void *dev_id) static void __init sh73a0_init_irq__(bool of) { - void __iomem *gic_dist_base = IOMEM(0xf0001000); - void __iomem *gic_cpu_base = IOMEM(0xf0000100); void __iomem *intevtsa; int k, n; - gic_init(0, 29, gic_dist_base, gic_cpu_base); - gic_arch_extn.irq_set_wake = sh73a0_set_wake; - #ifdef CONFIG_OF if (of) of_irq_init(irq_of_match); + else #endif + { + gic_init(0, 29, IOMEM(0xf0001000), IOMEM(0xf0000100)); + gic_arch_extn.irq_set_wake = sh73a0_set_wake; + } register_intc_controller(&intcs_desc); register_intc_controller(&intca_irq_pins_desc);