From patchwork Tue Oct 1 03:21:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 279322 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6D0E12C00BA for ; Tue, 1 Oct 2013 13:23:20 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQqXX-00006p-1t; Tue, 01 Oct 2013 03:22:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQqXL-0006V9-FT; Tue, 01 Oct 2013 03:22:11 +0000 Received: from mail-yh0-f53.google.com ([209.85.213.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQqWy-0006SV-UF for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2013 03:21:49 +0000 Received: by mail-yh0-f53.google.com with SMTP id b20so2226362yha.40 for ; Mon, 30 Sep 2013 20:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8SRqLpcZiRIpAmAyWb07EZ62a2ApbrlxcwYo9PmoG94=; b=StAE91RmOGKggGyTqchtpW6xe6f+4TZWn9AVYxDTVuXZxE2JilHi/U2eKX0G8T4cUP URFZuGwWexVPKnnEqke8YBFcKl3f/5ekO6dJNOBU+dGXz5JQlckHyY0TiZcA+p86bkqX 46o3DLNaPnkVh2LpwkILzCy0s/pPV/Dgs2msB7AhrhZ2VdLQlcKjAemtFmzkGMCoEHg6 ZlPPl/A98rWwiWvai6mtB31rDTERPo62jQPqqr54OjBrnV/fiMnX4N5+0OMN0ir1tnCp X9hu2g4W9y+M3D3veM1SXAru+6IMQACaTta2+XMt/LtgXeODdwY4VMjowOX8JEsH2QbZ qibQ== X-Received: by 10.236.106.6 with SMTP id l6mr26890550yhg.17.1380597683842; Mon, 30 Sep 2013 20:21:23 -0700 (PDT) Received: from localhost.localdomain ([201.82.207.53]) by mx.google.com with ESMTPSA id u66sm6158587yhd.24.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 20:21:23 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH 2/3] ARM: mach-imx: mm-imx5: Retrieve tzic base address from dt Date: Tue, 1 Oct 2013 00:21:13 -0300 Message-Id: <1380597674-31122-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1380597674-31122-1-git-send-email-festevam@gmail.com> References: <1380597674-31122-1-git-send-email-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130930_232149_067368_47B785D1 X-CRM114-Status: GOOD ( 11.54 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.53 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Fabio Estevam As mx53 is a dt-only SoC, we should retrieve the tzic base address from the device tree, instead of using the old MX53_IO_ADDRESS method. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mm-imx5.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c index eb3cce3..2cafcf0 100644 --- a/arch/arm/mach-imx/mm-imx5.c +++ b/arch/arm/mach-imx/mm-imx5.c @@ -15,6 +15,7 @@ #include #include #include +#include #include @@ -100,7 +101,14 @@ void __init mx51_init_irq(void) void __init mx53_init_irq(void) { - tzic_init_irq(MX53_IO_ADDRESS(MX53_TZIC_BASE_ADDR)); + struct device_node *np; + void __iomem *base; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx53-tzic"); + base = of_iomap(np, 0); + WARN_ON(!base); + + tzic_init_irq(base); } static struct sdma_platform_data imx51_sdma_pdata __initdata = {