From patchwork Fri Aug 14 13:53:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 7015171 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@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 E57FDC05AC for ; Fri, 14 Aug 2015 13:53:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E940D20435 for ; Fri, 14 Aug 2015 13:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2A2E203F1 for ; Fri, 14 Aug 2015 13:53:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbbHNNxO (ORCPT ); Fri, 14 Aug 2015 09:53:14 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36537 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753428AbbHNNxO (ORCPT ); Fri, 14 Aug 2015 09:53:14 -0400 Received: by wicja10 with SMTP id ja10so18863005wic.1 for ; Fri, 14 Aug 2015 06:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=EY/qvOLGg7ykf5skOY58zpC5O5xWkawrWDksPtt+GCM=; b=PKhntkGjF/jHIlwqyNMYOZentaIaJF0cS16g1I26wOsiY+iUQSEohiG/vT4eKPmwA9 R9Oq0bQjfy/WbfzF+SPQvBEInjDGAUKbbVjTG4tlXoJW/N8lK/wlAJPl+SndoXCLKJKW I3oYFfrIH+Bed+/MbtafkxF1BoBLhOLrmRzabP+PXlDwQe65PxgqBByHoWJwVVr94Xu+ YSvESe7Z1G99sDEDAl1BYdM4Rw0fzlLDk91fp3SKHNbfCuxidd6SlDCIe2cdLDvLIxFM 1KgKbWT+XPlt8Th110BGioFttahDnMVHnbrA+JblhtjgMOiPefk18QsuMc0LVsWemX8d a7vQ== X-Received: by 10.194.81.137 with SMTP id a9mr91437wjy.155.1439560392803; Fri, 14 Aug 2015 06:53:12 -0700 (PDT) Received: from groucho.site (tsn109-201-154-192.dyn.nltelcom.net. [109.201.154.192]) by smtp.gmail.com with ESMTPSA id fa8sm3211027wib.14.2015.08.14.06.53.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 06:53:11 -0700 (PDT) From: Ulrich Hecht To: horms@verge.net.au, linux-sh@vger.kernel.org Cc: magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH 1/2] ARM: shmobile: r8a7778: enable IRLM setup via DT Date: Fri, 14 Aug 2015 15:53:07 +0200 Message-Id: <1439560388-5061-2-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1439560388-5061-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1439560388-5061-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Works the same as on r8a7779. Signed-off-by: Ulrich Hecht Acked-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7778.dtsi | 3 ++- drivers/irqchip/irq-renesas-intc-irqpin.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi index 4b1fa9f..4b0acae23 100644 --- a/arch/arm/boot/dts/r8a7778.dtsi +++ b/arch/arm/boot/dts/r8a7778.dtsi @@ -78,7 +78,8 @@ <0xfe780010 4>, <0xfe780024 4>, <0xfe780044 4>, - <0xfe780064 4>; + <0xfe780064 4>, + <0xfe780000 4>; interrupts = <0 27 IRQ_TYPE_LEVEL_HIGH 0 28 IRQ_TYPE_LEVEL_HIGH 0 29 IRQ_TYPE_LEVEL_HIGH diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 0670ab4..7f172a0 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c @@ -352,14 +352,16 @@ static const struct irq_domain_ops intc_irqpin_irq_domain_ops = { .xlate = irq_domain_xlate_twocell, }; -static const struct intc_irqpin_irlm_config intc_irqpin_irlm_r8a7779 = { +static const struct intc_irqpin_irlm_config intc_irqpin_irlm_r8a777x = { .irlm_bit = 23, /* ICR0.IRLM0 */ }; static const struct of_device_id intc_irqpin_dt_ids[] = { { .compatible = "renesas,intc-irqpin", }, + { .compatible = "renesas,intc-irqpin-r8a7778", + .data = &intc_irqpin_irlm_r8a777x }, { .compatible = "renesas,intc-irqpin-r8a7779", - .data = &intc_irqpin_irlm_r8a7779 }, + .data = &intc_irqpin_irlm_r8a777x }, {}, }; MODULE_DEVICE_TABLE(of, intc_irqpin_dt_ids);