Message ID | 20200916205522.8783-9-festevam@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (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=LGQ2CrkA; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cBmn9UmE; 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 4BsC8d6L84z9sSn for <incoming-imx@patchwork.ozlabs.org>; Thu, 17 Sep 2020 06:57:21 +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=5ptcB1ffiGqAvw1jM+6h1DIKv7CBEQ/65OtPaObfSSY=; b=LGQ2CrkApZfJiWataU1i27lUiP GxLmlKDxePmWwcqo/fxlQyf5YZntUs9TPc2wkebL643JW7YsFyaHS+fl7ddHjQMgFymJ1VLM1Vfoh lUCHqx8ZtnEofT5kStS7hwYHnhegZxFVUh8uYdx/zzOOvZhZABuyLDjSOICdngFJI4SzVj60fkzqc dBKxA9mIxiJbhcublq+Pf/2/ABdKu8MfS6yaE0K8x3sXgyZIy70K6DTPn/oq2o0MTF8midYecEpdl XVuzCuTFlaXIc+nBo4Oj5dseFZ1JUST6DRTve9cEebyc3PCnGqLFjT6l/k+8kh71WvlupErQUxKtB tcSQGMkA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeU1-00073H-1y; Wed, 16 Sep 2020 20:56:53 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTE-0006jq-2u for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:56:05 +0000 Received: by mail-qv1-xf41.google.com with SMTP id db4so4305109qvb.4 for <linux-arm-kernel@lists.infradead.org>; Wed, 16 Sep 2020 13:56:03 -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=pWYottPXa/j1VI/eQrQ7MYuAWqcsi0C6o/IdIcLpqLc=; b=cBmn9UmE2AzaQv+/p3yDTpaJhzpl+yJx+MvkCoLbfatKc2GhvIdiGq+7sfOVevTmvO kCbE3Y4NE3ztw/4V5RrfR2XEpCBU/51D0bhq5F1ChpMhNaTplId5HW26M78uJxkFu0ao TeXQEF4CpBSprGFdpWuu2c0fuUKEbliZDCfgvNiwquMTZ9I1H+4RdOmb2VGDuzIkY+SF 8DOOsCPJm5SG0jcNssWIMDSqxzbUho+sSkK9mdU2XssiyZhhP+NL1Rk2fGsyRmTxYgsa qrl6I7kkoFiNwTyJ/Rk7ZKGqE/OMYeXewjeUyE2xekmQYCjgIPo2vfsHkrz9rThERjjA WANA== 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=pWYottPXa/j1VI/eQrQ7MYuAWqcsi0C6o/IdIcLpqLc=; b=dqkedMF78MY14araHgTboFnnsCSNBNTtOuvpZlgY+Bv7WPboJX+ApHpKZ/8fPSUAhe iCR7G8HYZmnMy2TwzzozP//gk3Zg8lIeFZMZ7UQOu9a7pXQPER3cWKw0BnU0egqQczMZ Pkj2rL0hV9LCAAS/vZbzCVmDDrSXPX3bTeSiN0qLUSmlq41cP5wncrrjT5ghBCcZqIUH x69MAsYPDblqSKCeWmjRDwse/vEyT42+UHD1HuBsYgjgkLWqXxHo32V7KxAc9PqL3jOt alZR2UIeVCfB/A33RoLiw5IcbSL+oCUY/iF7yty0NgIAQCwz4zaW/zgpe8tTpL5zTfl4 lo5g== X-Gm-Message-State: AOAM531FLvzgq0TuN153zkoE13G62wUQ+Fs6k0VOGGhLhFakIWwpgb6V 3alJ98dTVbrpZXOehyqIMm0= X-Google-Smtp-Source: ABdhPJyirgJ6lqfZzxFHqMqwM/K1qxmNqzqjoMWPKuzxhrdWP8J1m8xuyO6R3+Z9UnE+k8sLwBQpbw== X-Received: by 2002:a0c:b691:: with SMTP id u17mr26064311qvd.20.1600289762620; Wed, 16 Sep 2020 13:56:02 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:640:9cc0:878:419e:8021]) by smtp.gmail.com with ESMTPSA id q142sm20320897qke.48.2020.09.16.13.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:56:01 -0700 (PDT) From: Fabio Estevam <festevam@gmail.com> To: shawnguo@kernel.org Subject: [PATCH 08/13] ARM: imx35: Retrieve the IIM base address from devicetree Date: Wed, 16 Sep 2020 17:55:17 -0300 Message-Id: <20200916205522.8783-9-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200916205522.8783-1-festevam@gmail.com> References: <20200916205522.8783-1-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_165604_188222_F13D0EB9 X-CRM114-Status: GOOD ( 14.51 ) 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:f41 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [festevam[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam <festevam@gmail.com>, arnd@arndb.de, linux-imx@nxp.com, kernel@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org |
Series |
ARM: imx: Further cleanups due to dt-only conversion
|
expand
|
diff --git a/arch/arm/mach-imx/cpu-imx35.c b/arch/arm/mach-imx/cpu-imx35.c index ebb3cdabd506..80e7d8ab9f1b 100644 --- a/arch/arm/mach-imx/cpu-imx35.c +++ b/arch/arm/mach-imx/cpu-imx35.c @@ -5,6 +5,7 @@ * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> */ #include <linux/module.h> +#include <linux/of_address.h> #include <linux/io.h> #include "hardware.h" @@ -14,9 +15,15 @@ static int mx35_cpu_rev = -1; static int mx35_read_cpu_rev(void) { + void __iomem *iim_base; + struct device_node *np; u32 rev; - rev = imx_readl(MX35_IO_ADDRESS(MX35_IIM_BASE_ADDR + MXC_IIMSREV)); + np = of_find_compatible_node(NULL, NULL, "fsl,imx35-iim"); + iim_base = of_iomap(np, 0); + BUG_ON(!iim_base); + + rev = imx_readl(iim_base + MXC_IIMSREV); switch (rev) { case 0x00: return IMX_CHIP_REVISION_1_0;
Now that imx35 has been converted to a devicetree-only platform, retrieve the IIM base address from devicetree. Signed-off-by: Fabio Estevam <festevam@gmail.com> --- arch/arm/mach-imx/cpu-imx35.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)