From patchwork Fri Sep 11 12:40:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1362417 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=qzh9I17q; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=DNqr6YC9; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BnwP13NgWz9sTS for ; Fri, 11 Sep 2020 22:41:41 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=BwN1NoJ0lk6kNk5x1ocgMO+KWszuCDBrE9EHAf4tdfE=; b=qzh9I17q2Gu5kCPf1IbRXpaKIO S4unnVCDUn4oUOHhDZuuVxA7HNLdccjI8U/+NKEaZEINeAdAW+xO2v4+AMr2VZ4RvG1WAApTcIirQ AFmwt19tNqdzubJs4o1XsMdfi3JZLTpefZh9n8x1Obe1SmKVn1p3B8ioLL8iO+0adHz3CMYcgByGb OZRdYBzusEKhAHZPjrDv2GcLdi4csj3kMNITRdLHnLNbxqJbruLQ9cpbvj7zrWxMHWKhUacSbIcQT 6NZMZG5ObOSIBy6ffr1FJCWhLwQuclDbb5+CrfK06dNUCpvBTgc4QVLvEhl2qgC6iO6AqxlOugdpg 20RCmVqQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGiMh-0003kF-VD; Fri, 11 Sep 2020 12:41:20 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGiMU-0003fe-CV for linux-arm-kernel@lists.infradead.org; Fri, 11 Sep 2020 12:41:07 +0000 Received: by mail-qt1-x842.google.com with SMTP id g3so7661989qtq.10 for ; Fri, 11 Sep 2020 05:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MXLu77Vq5vpmAsFTpTs5zXYW3FXpK+Xstlxi4alemKA=; b=DNqr6YC9XwqF6lJAQ5R6iAsZhdxjVFV8XXuGQ7DtPzVZ+aqog79DrLaqfQPmk8ISqP rjmMWmZTnzgA1Td+yJNdw3N/KWR693cmXZrgfpHXY6ivTM5YhRHnQhn0yLTMfIKjzQpe XJatQwkXc02jFqYcEUOyZSEA0fjqzDnbcMsJYwj+z3yPAsv2RV8XPF9We3Wf+9WZIzzh p+gtiREut5Bk7ONDWmhY+XTN1a2n9DkWPo96JJKTpW7WAV8oAzUjbXdtPn+ikBZ1mXK4 x4nhj25paHaAdCjXT7ODSKUFXIuX7yTfm2ZliZ/nYTcoxeUhneSTqghxIZyCVY14tL8e 1PXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MXLu77Vq5vpmAsFTpTs5zXYW3FXpK+Xstlxi4alemKA=; b=DX0CVVcVDtxuSSVYh1ihDOJug+AeJBG3KCUEahZfWzUB1s+Cx9unhcfd4wXdq0HFTB Of/zdqR+8AKc/xBgQCPF65748rsLkNVD9Zfuc/AWtXi2qhkvpLfraE8oWOhatKn4NtGf DWSxXp/6PxaLtofWP+GdyESnAABgSRjG9iNiLxMojViGhchWEmaGGPNqcwZKFm2bVYLm tzGOStDGH54tWpUTwzA5ZxJaOaIgRrs1Xbo+HmdG4O35y5lqEgsPt0DW6u+oJH/hZJi9 a3On9ZqOeJWbjjwHg8GPgsg7G/i+D3eZy4SgaaDTh/GsPzGLE2ZSMp1qNR7NXOkV6dO5 W5SA== X-Gm-Message-State: AOAM532L7ExxsDzGr1o8/aW9wzDc+cSkFYuysZvj5iXNayp1Tr42trcV XcV6w5IK2wlW9eG7PcZ6gB0= X-Google-Smtp-Source: ABdhPJx3NHMJfV/ryPYBIRgJ0sCpepE12NPiN9teFeA58W9TlHfNxfT/Y7d2zhWEtVjtAXi6S2Egbg== X-Received: by 2002:aed:2ce7:: with SMTP id g94mr1709560qtd.184.1599828065020; Fri, 11 Sep 2020 05:41:05 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:640:e918:537:c362:6060]) by smtp.gmail.com with ESMTPSA id c13sm2343931qtq.5.2020.09.11.05.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 05:41:04 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 4/9] ARM: imx27: Retrieve AVIC base address from devicetree Date: Fri, 11 Sep 2020 09:40:29 -0300 Message-Id: <20200911124034.6792-5-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911124034.6792-1-festevam@gmail.com> References: <20200911124034.6792-1-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200911_084106_466196_66D42574 X-CRM114-Status: GOOD ( 14.56 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:842 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 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from 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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam , arnd@arndb.de, linux-imx@nxp.com, kernel@pengutronix.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Now that imx27 has been converted to a devicetree-only platform, retrieve the AVIC base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mach-imx27.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mach-imx27.c b/arch/arm/mach-imx/mach-imx27.c index 2d981d1eafbf..84396ccf23f2 100644 --- a/arch/arm/mach-imx/mach-imx27.c +++ b/arch/arm/mach-imx/mach-imx27.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -58,7 +59,13 @@ static void __init imx27_init_early(void) static void __init mx27_init_irq(void) { - mxc_init_irq(MX27_IO_ADDRESS(MX27_AVIC_BASE_ADDR)); + void __iomem *avic_base; + struct device_node *np; + + np = of_find_compatible_node(NULL, NULL, "fsl,avic"); + avic_base = of_iomap(np, 0); + BUG_ON(!avic_base); + mxc_init_irq(avic_base); } static const char * const imx27_dt_board_compat[] __initconst = {