Message ID | 20200917004125.18487-7-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=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=Tm8oX5cl; 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=AvNhIP14; 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 4BsJ9D5ns5zB41c for <incoming-imx@patchwork.ozlabs.org>; Thu, 17 Sep 2020 10:43:12 +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=mpKOlv1cZuT+X148aatxAx57YTnHx0HpeajN31N8oo8=; b=Tm8oX5clksIT7bflzTCIA1US1w VErNIZbqt4RvuecBA8khgbGefm+tegUiei/JT3DiujXXgLRTUfKZJqYDGLfXjG1QhS0dfRMxXEOHW Cd3SBREnQLvwn++hQHC2xkmjCDmjNP+L+imI9vKec2xnLs8mCLJqb4BVciPBwVvcugLpwGNY7v9Hu 7CHCCU2l8U8X51ZfAAGJCNdDqvOnnIflsZw7kJ0y5MraZVVmC+0U2sri6JX7cpSxaAZF9B/RScLdK cdUXNLmrWXQeHuyhNOATw0h+mGJJRzE+oD6P4Qs1Ljdp+3McFBbI/IBNMIIP5JY5KupODrxBY/EDK BwFnQJBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIi0b-00035B-6l; Thu, 17 Sep 2020 00:42:45 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIi0D-0002vw-C4 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 00:42:22 +0000 Received: by mail-qk1-x743.google.com with SMTP id w12so518455qki.6 for <linux-arm-kernel@lists.infradead.org>; Wed, 16 Sep 2020 17:42:21 -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=VBuH6kVTTAgv+z8ziryRQa+Y66kQp7Vy6WW+CXs8j40=; b=AvNhIP144iPeX2aq0epYmUdl2+eYFjFncvLwCi/ecI5BQlVzYrnjC+P1xRba3ZHHv1 0yRiV8H/aEMnrKXlMsDCR/rx5ta08tiwcMa7UO+ZEk5r7aYUa8s4Kg672cXE5lDnp9Aj fB8Pz/y8Eo/IN7EDQGJ9CxP6szCBNpvSW51yn0vDOsx7in/w38/nzX+MVraas7QdT866 Hp7B64bsmdSZEKApYGkNXgXHk/phfvxJK/HzcTsa16jJKmQ88eZgQEFtbmqkStucdIZq BiTuEv7VAfAwRsEebOg32u/UpYUGWyEAlNmumiZopyza5xeTgCRotPO3YYnV+L0N9v3P QAOw== 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=VBuH6kVTTAgv+z8ziryRQa+Y66kQp7Vy6WW+CXs8j40=; b=Lyy5VD6OGcW/JetaSh3O7WGghchgAPymBXk3mMHtXhan0p6KPWWUW++HbMeE07IdRz mcVUcTb+EeNepkvWsdbQcxCIYI1EG1dysbivviIeIwVgMWMdbDYXDCmJfTbGI58zyNNj 70Ipwh8yBJMp2fa4PYIboF8WiNRS125gTRq07w0qT+et7zqUx2kEUt2gTYYDhwh+ZUbD eOK2lrytvTA5bCxSv0atRwtTzi8pNZYH+t85JvIWo2gWZXHqNziw/b2LJh+mFnrkfHRD Bx10xQPKbOgTcPqaogH+UkNpzmpJ7SKBZtklJUTLuu7GqpyoFnD/MKuiHrqPWER6OwoT Iygg== X-Gm-Message-State: AOAM531q/dWxbLL88tbvorOMwl5Ax3E4+L5WN0/gNQTnYC58Oy+NH1iE yDm3jmeY7za7pJED/ZOz7Kg= X-Google-Smtp-Source: ABdhPJwH6q9zASQ/9F1MVwGhJfT1rDRdpAWZ9O9E420XtXoObHksteZuPPCz/fmZTOjcHGnwHCyMAg== X-Received: by 2002:a37:d41:: with SMTP id 62mr24563733qkn.444.1600303339562; Wed, 16 Sep 2020 17:42:19 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:640::1000]) by smtp.gmail.com with ESMTPSA id w6sm20127893qti.63.2020.09.16.17.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 17:42:18 -0700 (PDT) From: Fabio Estevam <festevam@gmail.com> To: shawnguo@kernel.org Subject: [PATCH v2 06/11] ARM: imx35: Retrieve the IIM base address from devicetree Date: Wed, 16 Sep 2020 21:41:20 -0300 Message-Id: <20200917004125.18487-7-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200917004125.18487-1-festevam@gmail.com> References: <20200917004125.18487-1-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_204221_454262_34B214EC X-CRM114-Status: GOOD ( 14.41 ) 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:743 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> --- Chamges since v1: - None arch/arm/mach-imx/cpu-imx35.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)