From patchwork Wed Sep 16 20:55:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365487 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=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=HHpr375w; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=jRWRTDbe; 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 4BsC7J3Hcdz9sV0 for ; Thu, 17 Sep 2020 06:56: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=mV0/U7LPwEIZc/HiO6N69IdoNJgYJUB666qklGbz+Xs=; b=HHpr375wasFT0g7P3JOoSpEeoN xx6/WPaXlvAypiCj05c/Avz7CxOQMyYxVftYDEwjj+tv8Y2UHvSa58aCcmsoD+tZ3JT0CTg8etY6h pjj3ZFPXHv4gSN1r756K74lHW3w/0jYPuOjV8U+rIyKqnEfKOYCMHS5KrBopdBOfR4nH0voT5fMOE GtnnlYC57QPM/kNRGo4P9gFZKD2p0e6FTSMP1iGCjEyniZBQGrpVOwuipCpRmdwdNAeqGHD16gL0U iLAa9A4rKOjSasG1umvTvZonsIqUH0uRn7hOOmrGNokmSIenMqFcM53TP7MJUrhNaMxQmxtHBVQw0 MH7g2neA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeT0-0006fu-SZ; Wed, 16 Sep 2020 20:55:50 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeSw-0006es-Q9 for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:55:47 +0000 Received: by mail-qt1-x841.google.com with SMTP id h6so63850qtd.6 for ; Wed, 16 Sep 2020 13:55:46 -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=RWONPhwemPptxWmzAqDmFDacrp/cQIB0QuRKaV20UJc=; b=jRWRTDbek387KAFTUkYDGvmRYSIfo55+fzxi7L2ijlF65Xa74RskoQZC37mpzzo2VR s3fxyPX8BeQj9hkDfXfHVSSyXhAY+zF0NxWUuyPc3zitzPUFYDWYBzDhbKG/iaiiYZwW p/vPEHZ4CstSg0NYWCUAt7vG0SYF2yt3xj9vJB86M4rBSnXYBrvSh69g8J0eH3WzriCd bac6y83OmlkZyBhtQgHt70wU2PDRhZX/tKLzZDDd3TZztJxYgaPLxUoL+cpMXC81xQdt LYPsFpZnFQwr7scaG+a/OWAB3jJ8RS5MguJgsE/yCy+SCH8YktGCebyR6/5wzxWNucCh ZxAw== 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=RWONPhwemPptxWmzAqDmFDacrp/cQIB0QuRKaV20UJc=; b=mNlvtu+IrnTjrCyT3z7FavJegxzMej7buNln9pBFYHb3XHye8b2M67O+9yEFnngAfT Np60V1+5c+CeS37w1KWKkPMBsZCsQ1XrIuLzsvtaR0/F5YUu3uvuUVFGN94tGLIhmYYg CkXJlBN8C+c6ewovsg1qKquPNtVUGvAiYAus9l4uQlZaP1nYoqwcM6fGeJOJHBujezRk XMJNULnsqJV6YZ09c2KmYFEVoHG2MF6tDenGwWofg4oFl3dQIQcneJjfxEz0azOYycPu 5x5Vu/HvqUWJa6Udh+vjR/tR6JiC5fv0TJO+WJWxtLxG2F33kiHzwUxXyHHByikZQdYx P2GA== X-Gm-Message-State: AOAM533jxjMGpTu+WKGLwRu4MfuKgwouBsppSswJeNei6yaBypcNTUu3 01TWa7DBa6xi9CW3CtfUpp4= X-Google-Smtp-Source: ABdhPJyf94L3Lm6Cwwv4UJFE7z9sUlhEpY7RMtsrsKCNtN96ffZbgKXeV7GnBDlBES29w+df5BoiPA== X-Received: by 2002:aed:2f01:: with SMTP id l1mr25044213qtd.349.1600289745428; Wed, 16 Sep 2020 13:55:45 -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.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:55:44 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 03/13] ARM: imx27: Retrieve the SYSCTRL base address from devicetree Date: Wed, 16 Sep 2020 17:55:12 -0300 Message-Id: <20200916205522.8783-4-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_165546_885157_014EC520 X-CRM114-Status: GOOD ( 15.01 ) 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:841 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: 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 SYSCTRL base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/cpu-imx27.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu-imx27.c b/arch/arm/mach-imx/cpu-imx27.c index a969aa71b60f..2c8430f34556 100644 --- a/arch/arm/mach-imx/cpu-imx27.c +++ b/arch/arm/mach-imx/cpu-imx27.c @@ -9,6 +9,7 @@ */ #include +#include #include #include "hardware.h" @@ -20,13 +21,19 @@ static int mx27_cpu_partnumber; static int mx27_read_cpu_rev(void) { + void __iomem *sysctrl_base; + struct device_node *np; u32 val; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx27-sysctrl"); + sysctrl_base = of_iomap(np, 0); + BUG_ON(!sysctrl_base); /* * now we have access to the IO registers. As we need * the silicon revision very early we read it here to * avoid any further hooks */ - val = imx_readl(MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR + SYS_CHIP_ID)); + val = imx_readl(sysctrl_base + SYS_CHIP_ID); mx27_cpu_partnumber = (int)((val >> 12) & 0xFFFF); From patchwork Wed Sep 16 20:55:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365488 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=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=uBE/X1wg; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=moxyIdzk; 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 4BsC7X0fpvz9sSn for ; Thu, 17 Sep 2020 06:56:24 +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=N2aMu3cXYeimo/McWUU2vPOHJy9cgNm0E3Fv9jb/Yxc=; b=uBE/X1wgXG5koNpH847ZRrA4eD Q1gso0+l0oq4A/xqbroXSqRZKX/Mj04KVUbhNwbk6vFtuF4cNBbtWfYJUf+s3Vbt8BAt+bZ/bDAM5 S70biR2qOWd/kYxQuJHJ+C39cEPUzXD8g7lbiUO3qRXGYclSHZID500FWP8MT7zH3CSOZz0mdhmFk xiiG/bZM4Z1ieMZflHbqOqIEqcJlzJRldm67oKwq2X6krBgLPijKLxlIIQ/qRM5nK4h6ajsv/Wj5D PbaSz8njZ7dyldrLpWTaI0S1YoS4w7A5bBiyaYeH6WAgyIASOM+w1nSoGvbkstn7EP4WjyMMoRFNR SL2Lyagw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTA-0006ii-Kk; Wed, 16 Sep 2020 20:56:00 +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 1kIeT1-0006fn-3M for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:55:52 +0000 Received: by mail-qv1-xf41.google.com with SMTP id z18so4292311qvp.6 for ; Wed, 16 Sep 2020 13:55:50 -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=Xlr3leNCtmg5lGhoiV0RJvwzeoH75Ap2iawoMOs+/ss=; b=moxyIdzkKfdRzqStsir31MSUueua8eZllctoPq0RBBhSJMQ4eJS9kxX+INQUfaja1C p7nEfSPtPuREu63XB/80NKb53I1qoJdurYy39dCc5z3I4VsAqH20xIXB2Y9Ja72xw9o+ eDBfK48dPXxm7hx77CgKQS4JNfgOtBRHEQ/DZF+zaoVbbJAgsSYYiT9qezybWp2E96x9 /UcJHYe8CWRSwJnTAauXtAwV37ijjPo/o5y2VGT9XdZrTfx3pgGcUxjd4idPHUwp27Vm 9UiFJ1IjmAFnbNRP6KJcXlFbKnhCy11+Ks1M8deW08wQ4TQfx2uy1ew5ZhRd/ulqy8HQ 6G5w== 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=Xlr3leNCtmg5lGhoiV0RJvwzeoH75Ap2iawoMOs+/ss=; b=VH0SbXor+ga86i4J26Nwdmi6mHqsyHgYw3FZ+gdKF1MpfNFXED2dU1l/LHwe4nJhjO Ap3w6M3BaJjj9yJMOgWpFvpwvOsItVzHqK2STF3OoosvpHgoYqLXZfyBN0D3gEw39SIk JUUSJiGBNC1V8kDrDCCTLGImB+03kLbZmVa4YtN3kuHvvSmPusc7St8ImgvLGPChFN33 938+U3AomwUIl6knELUOjWoTVG1IuBcMPbkm7RFJtb7WBY8VS+TVALArk7m0fi1AjvCC 9b9H/9SzFludT2pBODqPntaAqFsTIae3HvrgIDBA7ST8fj33ffju1wYE3aPeMQay94gx KuOg== X-Gm-Message-State: AOAM531ch+fCm+0hnYB+LZRH9z7BbzhX4+flYd5i0XvEyCmK/zkWb2AD fBraGg2fxf3SBUfHfFWZty7gx/UpsFw= X-Google-Smtp-Source: ABdhPJzHgXNxF7qZOosIhJWeFVgzTnYcH+1NVS+C9XvnifQsai7h6yw0QebCC6eCwR4SNUNtWfD6qw== X-Received: by 2002:a0c:ca08:: with SMTP id c8mr8654405qvk.42.1600289749426; Wed, 16 Sep 2020 13:55:49 -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.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:55:48 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 04/13] ARM: imx27: Retrieve the CCM base address from devicetree Date: Wed, 16 Sep 2020 17:55:13 -0300 Message-Id: <20200916205522.8783-5-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_165551_174960_CB8ADDFB X-CRM114-Status: GOOD ( 14.89 ) 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: 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 CCM base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/pm-imx27.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/pm-imx27.c b/arch/arm/mach-imx/pm-imx27.c index d943535566c8..020e6deb67c8 100644 --- a/arch/arm/mach-imx/pm-imx27.c +++ b/arch/arm/mach-imx/pm-imx27.c @@ -7,6 +7,7 @@ * modify it under the terms of the GNU General Public License. */ +#include #include #include #include @@ -15,13 +16,20 @@ static int mx27_suspend_enter(suspend_state_t state) { + void __iomem *ccm_base; + struct device_node *np; u32 cscr; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm"); + ccm_base = of_iomap(np, 0); + BUG_ON(!ccm_base); + switch (state) { case PM_SUSPEND_MEM: /* Clear MPEN and SPEN to disable MPLL/SPLL */ - cscr = imx_readl(MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR)); + cscr = imx_readl(ccm_base); cscr &= 0xFFFFFFFC; - imx_writel(cscr, MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR)); + imx_writel(cscr, ccm_base); /* Executes WFI */ cpu_do_idle(); break; From patchwork Wed Sep 16 20:55:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365489 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=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=pXC/1/sI; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=JWUJMW2G; 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 4BsC7m03bxz9sSn for ; Thu, 17 Sep 2020 06:56:35 +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=q3cbgceXlFfmzyY73evdj0LrusghERgf2aDadEAQ+EU=; b=pXC/1/sIph2yPynIeozjXJFcQ8 tgAM6BvuyI9J+3MSqU3Ezio7fRgEVjHlq7MieFwjX+fKRv4kqwF859XfjRbxnon/O1KBJWIUlhTWv MME370v8Z7w7O7DyYzih5LhuxatxhtOAZ1oL9Y63rNebwL1OcuphXcP/ya4hFhgEGWRlyaDo8O4PH u+SXQou7uFq7m+SvNgd1lUWSWloQY3zC/QZVQKffvF4PRUDaX2D/ANBCcQSZboMwI1yju4BraBlBY bBEEk49Mv9231OhhJMBWhkouRgCGvkKMW8i1SpuybKptRHv+sOJbptpOnbDCoFJdIz76AaYQlfOJ2 oawLhhOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTG-0006ki-V1; Wed, 16 Sep 2020 20:56:07 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeT4-0006gY-Tz for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:55:56 +0000 Received: by mail-qv1-xf43.google.com with SMTP id z18so4292381qvp.6 for ; Wed, 16 Sep 2020 13:55:54 -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=N6krN3rGeS8lT5ev3dien2ObPkql9LGRcm0DkxsKGrI=; b=JWUJMW2GSYRx5tGj/8IaVRVNY3eIR5zqQodpt71ZG2rOTLre7J8/qmJSxw1xZbm8gn zI+2mL+HyMpRn7I/sp8xWVHM/CrijelSGecjXK1vaPv3WMb25jDyO73psEjF/6QNUJaS iigBQXvYA6vvxJf8uKzu1Z1mWDTVQoPF0oGX4m2b//ffltxGm7WoaG+sEaLfgsA0TpTB zv8hzQ3r4KPv5QdhD5SVz3qAK6AFlNE+iwCfNcrmit9icB2fF19HHFpWXjhdIG0h2eiu ZD+59Dz+n9GnZvvcmgAfkDK5/Wh9Ce5JP826KVgQJ4GsT6kCwY9IJcnentuTRfzWB4ba YMXA== 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=N6krN3rGeS8lT5ev3dien2ObPkql9LGRcm0DkxsKGrI=; b=DV5/7h5FfPpSrzEiQzgk0CHUdAENR5oB61WlneHLh/EewsAoiLNwHHOhOspEZZqs+6 JF8OMGoAmBnt+YP5yXo6RMg8fi+HpfUf2CU10DnKIHU90Ca0VTsW2ffuBSEFqh+jRjIN SCsUI5+sxMd20sEAOHND/6WjYqTtKUjzemwXedNrnxQH5NSYDJabXWNWajFKNvgR1Qo1 f91l4dQIKHuaN51HrE9ve63ynQLOunmeJ8o4NZdhQPfOymqG/QT8Lh/GA6Gm8/B6+J8O lTEHHmsz3m/00qsjfkNOgA6yyadaLrlKHc39DaOCLp3U8u/q2qZvi2+C5x9A/hatozK2 tCRQ== X-Gm-Message-State: AOAM532z1AnbMwsiBrw14LpOcPdwsjfAqhi3AP1dkfFLnlZmQDmaVrVs UTCY9ACDyl0b+IL2eU+2GOc= X-Google-Smtp-Source: ABdhPJwko68kMW2956HbIV7Z8LTbdM0tNeo0Gp+SGGjjblpc0uGxtR5Hm85gi2nlvLMtk67TQFWDWg== X-Received: by 2002:a0c:ec87:: with SMTP id u7mr8933011qvo.50.1600289752855; Wed, 16 Sep 2020 13:55:52 -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.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:55:52 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 05/13] ARM: imx31: Retrieve the IIM base address from devicetree Date: Wed, 16 Sep 2020 17:55:14 -0300 Message-Id: <20200916205522.8783-6-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_165555_288231_45822A77 X-CRM114-Status: GOOD ( 15.08 ) 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:f43 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: 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 imx31 has been converted to a devicetree-only platform, retrieve the IIM base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/cpu-imx31.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu-imx31.c b/arch/arm/mach-imx/cpu-imx31.c index 3ee684b71006..47677da05cff 100644 --- a/arch/arm/mach-imx/cpu-imx31.c +++ b/arch/arm/mach-imx/cpu-imx31.c @@ -6,6 +6,7 @@ */ #include +#include #include #include "common.h" @@ -32,10 +33,17 @@ static struct { static int mx31_read_cpu_rev(void) { + void __iomem *iim_base; + struct device_node *np; u32 i, srev; + np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim"); + iim_base = of_iomap(np, 0); + BUG_ON(!iim_base); + + /* read SREV register from IIM module */ - srev = imx_readl(MX31_IO_ADDRESS(MX31_IIM_BASE_ADDR + MXC_IIMSREV)); + srev = imx_readl(iim_base + MXC_IIMSREV); srev &= 0xff; for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++) From patchwork Wed Sep 16 20:55:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365490 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=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=fHW//G+k; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=gdZMMZ/S; 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 4BsC806Mfmz9sSn for ; Thu, 17 Sep 2020 06:56:48 +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=v2PuT2/BtT/cOFOP7kf2j9ri7c9q/Bc5BQanWUQ+/60=; b=fHW//G+kkh8SWIU+pCMjLMVl52 4OFyUUxsYBiAj920vXTWaxXQb1qrLTO2FrfBJYxlhZLLFMx3ToUoCv/QXwmIXeO1F4aIN91lOBLMu 5s4NiQCBMjU6632GEwmQClgUPnjjPaJ20C2KJbeZ8o2ZsIczG6GhHRmjWZv9WB1xTOWkZHNSlvBI+ jfjwp1KNgwf2w8pkkmIvJ100Bom+6rnRfXsC2NNgDsnLS0FCGZJbX5FAurCjsDmuZCGSRRyb4v9FW LmCR0gm7XFHI89u7MKvevBIZ3FrfNEPvyBDU1JN58rz/BgurHfEf3egBQQsjNZRdkLOGFubdXRboh UobBDylA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTW-0006pa-LB; Wed, 16 Sep 2020 20:56:22 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeT8-0006hs-AW for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:55:59 +0000 Received: by mail-qk1-x742.google.com with SMTP id o16so9734045qkj.10 for ; Wed, 16 Sep 2020 13:55:58 -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=xhkI/d9Dfi5Y+r7hNLKh8MJ5iiL1RR/MhPZU3BzHsJE=; b=gdZMMZ/SZ82Hr5j38PwFA6wFLtugeeH54bHoVKQgfLnbN62uaANxSmygaQtR0SkiWa oAHCAsPpCZZxhgMl6F8xdaNzT+v82Vwq7n7v3U8XVvuncQlMKRGcIHgY7ZWGkhajPtYp RhiPWg9sxKEelE2uMmft/4qlL6BOwNJ2IaFlDYCSHhUNM57Hi9d/QELIBLdTwwks05IQ g1W3OF060cSgC63oLkIcCV47HU7pv0pRewxPmrt/xUF6thp0tY/DF5NZxTHwAX3bJBtH Fia2yDolL6Lq7p1Yt6So2wW5as0AQ/l6RjpZ9vjYZ1VSwJ8O/X4TBCZijFzo3pJb7lAe W7FQ== 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=xhkI/d9Dfi5Y+r7hNLKh8MJ5iiL1RR/MhPZU3BzHsJE=; b=RMNu+BsFHUigafF8G3yKHswL0riVJfz4McFBAZX8RWy+MNmZqWDoUvis3eSIybTtzu zmgKI7cSOBl+dPA4ifcL1UZ35OAl7NTJyeN0vcEcH/lnO6vUyl6Xxyl2h9hEReljlwlr DgmkmodQFzCfce8T7lYW0AbO4gjfK4D68r+plVIAYO5fTSgWsKAoDQElOyMbTn8NtmuD YE58zUaewPYbiWAW03P4s9ygkae+gyuwz9W5evM5Sd5mb5OJOfEjMtsTWwkkdJUkZPMf gK9gNmgc+iOGxbh2qkiH7wgKKqP2E6N9MCe/karUxo18H3N3/oefS+P82meyJZtIPjgd 368w== X-Gm-Message-State: AOAM533/L6layK14zZ/07wJpEJK5QVEirMzlPD8XIPyDf0YstmZcURzi ZvQ15zjVaWJUuA89mzo/qiU= X-Google-Smtp-Source: ABdhPJzlCbQF/17UVXoTyGTs5msYjbaMB7eFXy3mclrIfkr1ZKkIpgMKFCah8kexmKzdaAOd9yvIAg== X-Received: by 2002:a37:a6c3:: with SMTP id p186mr24981377qke.237.1600289756701; Wed, 16 Sep 2020 13:55:56 -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.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:55:56 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 06/13] ARM: imx3: Retrieve the CCM base address from devicetree Date: Wed, 16 Sep 2020 17:55:15 -0300 Message-Id: <20200916205522.8783-7-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_165558_627017_0E2C2E43 X-CRM114-Status: GOOD ( 15.03 ) 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:742 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: 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 imx31 and imx35 has been converted to a devicetree-only platform, retrieve the CCM base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mm-imx3.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c index 4df7edc7ae7c..b7c5e15bb972 100644 --- a/arch/arm/mach-imx/mm-imx3.c +++ b/arch/arm/mach-imx/mm-imx3.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -99,10 +100,14 @@ static void imx31_idle(void) void __init imx31_init_early(void) { + struct device_node *np; + mxc_set_cpu_type(MXC_CPU_MX31); arch_ioremap_caller = imx3_ioremap_caller; arm_pm_idle = imx31_idle; - mx3_ccm_base = MX31_IO_ADDRESS(MX31_CCM_BASE_ADDR); + np = of_find_compatible_node(NULL, NULL, "fsl,imx31-ccm"); + mx3_ccm_base = of_iomap(np, 0); + BUG_ON(!mx3_ccm_base); } void __init mx31_init_irq(void) @@ -137,10 +142,14 @@ static void imx35_idle(void) void __init imx35_init_early(void) { + struct device_node *np; + mxc_set_cpu_type(MXC_CPU_MX35); arm_pm_idle = imx35_idle; arch_ioremap_caller = imx3_ioremap_caller; - mx3_ccm_base = MX35_IO_ADDRESS(MX35_CCM_BASE_ADDR); + np = of_find_compatible_node(NULL, NULL, "fsl,imx35-ccm"); + mx3_ccm_base = of_iomap(np, 0); + BUG_ON(!mx3_ccm_base); } void __init mx35_init_irq(void) From patchwork Wed Sep 16 20:55:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365491 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=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=21QPP+w2; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=TQ0Oh8Ka; 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 4BsC8G59TYz9sSn for ; Thu, 17 Sep 2020 06:57:02 +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=gZ9jYfdMHntsLtBtHk6xezCE8THs8vLyo8Qt645ZnfQ=; b=21QPP+w2nrSy3trC2kxOhfSeN7 hh3x3zYfhn9QN8EhFXh0FZwsnCNnyglzrz2q0Myl3or+4CXfGy3/vVt8Wr37TxcrnDniabKdPimib ZE1zgwcyS7YDJBbfnK3d6AS5AbXMmd9BWOUUG8ga3G0xWeCD8IRE8SPhG9u1bssa7rrbx0qFb9hlV Ed0qSCOwYi11lW5jsyuDuHE2jN2yL1ucfmKpmXCXIdwWcrc38R7tTHBR5aCtQTj0sMSxTvwvv+lHP uN0QCKcJ2UYW4RLPeOGoHWNZ4Fgjmqbm5HxGbuTQ4j1fy8dA0ZYJ0YzddXcw3m9xmWLwdQcYjUcTR SP4RrvnA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTl-0006va-8e; Wed, 16 Sep 2020 20:56:37 +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 1kIeTB-0006it-7S for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:56:02 +0000 Received: by mail-qk1-x743.google.com with SMTP id 16so9771943qkf.4 for ; Wed, 16 Sep 2020 13:56:01 -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=vavC1iXU2G1boLj6NovtDmgdJIilZMHWt1oKZQR4/a4=; b=TQ0Oh8KaGhtyTwtjvLAQvnAHl4JSaiDvZfWK4dDL+bAIhV2RyLLxk8YL2txNqZQ4F8 5LjRcNO2c1xeB2yadZcRXKs0LW+8IJPCRaNN3JBnhhpGgqDehYau+u8Axi39JQgO1odo BbtJaN2OTgwgcJq3DNGMk256I7Q1ImUdCfN7tKg4b8lfQwrYNdoITmqMJiH4YEKZjvLR AL59HP08SmtecfNiOyiYMcJXilEsoAAmHamI3dM6tYHQxg+xKble949H4kG8xyuEWXVV i2OwESvO7qQw/c9XS+sa3m2vSbtV/WM9fN/3tYLyRwpypgJd6lq0l2rAlr22LgYkZR8Z WU9g== 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=vavC1iXU2G1boLj6NovtDmgdJIilZMHWt1oKZQR4/a4=; b=QnVvMZWWACfCa6QCn0QQ4P9D0eTtMHwM1GpgQ2XuZEwvCxRdCj8UUvw0YV4FBMPS09 hNGwbi4jRO6q17CN7TxL18o/bl8FKocm6rk2NUeYHrOgJZzZ1/YPWOheyo7qsg54ZGaU Fdwhm+mmW59edWw/EtF5eBdVvibflkJ0o4FQLcF3AozutmCSjygCcsW0n2DKM0nlNGRu EqxiyuIclGExp5qCRprNzaHk9obvzWpapWWsgeD7EzWDGHqoymB+qCM/D1gjd1yBCUkz 4dzjSU6BxCZxKB0ttqy2L2tukegB3Z7BcdLGJwFGE5a1ChrlATTndiGpu3WryupIe/aT vm1w== X-Gm-Message-State: AOAM530deAH55ex6jXq9eaqk2L31gLpGq+olCFdV8D49y4gkyxoDXf2n fxf5/R9IGfh3LGeoVp0q050= X-Google-Smtp-Source: ABdhPJzySdk+Z7oQXBEiqYyokUbLQUdLXKMTC4zHtPVKcBG2aMDQtMuelvA9ZZddrWiPYG/m4BZzhA== X-Received: by 2002:a37:d95:: with SMTP id 143mr25788713qkn.224.1600289759762; Wed, 16 Sep 2020 13:55:59 -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.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:55:59 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 07/13] ARM: imx3: Retrieve the AVIC base address from devicetree Date: Wed, 16 Sep 2020 17:55:16 -0300 Message-Id: <20200916205522.8783-8-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_165601_340664_AB18CC7A X-CRM114-Status: GOOD ( 12.88 ) 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: 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 imx31 and imx35 has been converted to a devicetree-only platform, retrieve the AVIC base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mm-imx3.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c index b7c5e15bb972..5056438e5b42 100644 --- a/arch/arm/mach-imx/mm-imx3.c +++ b/arch/arm/mach-imx/mm-imx3.c @@ -112,7 +112,14 @@ void __init imx31_init_early(void) void __init mx31_init_irq(void) { - mxc_init_irq(MX31_IO_ADDRESS(MX31_AVIC_BASE_ADDR)); + void __iomem *avic_base; + struct device_node *np; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx31-avic"); + avic_base = of_iomap(np, 0); + BUG_ON(!avic_base); + + mxc_init_irq(avic_base); } #endif /* ifdef CONFIG_SOC_IMX31 */ @@ -154,6 +161,13 @@ void __init imx35_init_early(void) void __init mx35_init_irq(void) { - mxc_init_irq(MX35_IO_ADDRESS(MX35_AVIC_BASE_ADDR)); + void __iomem *avic_base; + struct device_node *np; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx35-avic"); + avic_base = of_iomap(np, 0); + BUG_ON(!avic_base); + + mxc_init_irq(avic_base); } #endif /* ifdef CONFIG_SOC_IMX35 */ From patchwork Wed Sep 16 20:55:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365492 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=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 ; 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 ; 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 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: 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 imx35 has been converted to a devicetree-only platform, retrieve the IIM base address from devicetree. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/cpu-imx35.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */ #include +#include #include #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; From patchwork Wed Sep 16 20:55:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1365493 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=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=tROUM3Sx; dkim=temperror header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=P6WmKFDE; 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 4BsC8j3NvNz9sTp for ; Thu, 17 Sep 2020 06:57:25 +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=xhmqgPRHPGHksoY11PICvQuYcUpXFFh1IitiokgZFjE=; b=tROUM3SxlJZPfkhYDpT9TVN4As +pLNqcynT6W7kK1RSnJNZphH5p1tt3yRP/cu+4QBd0hP67Lvt/Z1YnUun0gLCLrmD8t6qOgqVno4W EI/0WPsMXq2YAZ3AHV6szWiUi4Oab4utQUlIiaKABNzDQo/IDZtsWLK1oxtJNVCF5YYfJTX8IykjF nsUTHl6vOpraOSJqVxbyEi92ahOBGrEAfGuRogi4iRMqN6cv8TelnGftZB4hizpZhI8+mRaj/sWnL R7G7jurMC0KHOz7DOA9hCuczktGXR7rlk6amL5Pz3GI6TYA5jR/As13XF+Gl07MBaZbPQx/qKJ2Sj NsiMyTqg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeU6-00076Q-89; Wed, 16 Sep 2020 20:56:58 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIeTG-0006l2-US for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 20:56:08 +0000 Received: by mail-qk1-x742.google.com with SMTP id o5so9702659qke.12 for ; Wed, 16 Sep 2020 13:56: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=ygdLGS+o3CFJREcOCrfa1rPUTTf2CXzef1CyICbyhxA=; b=P6WmKFDEOrRS/tLriRqZA/6kFdczlQObwT4ZLCMHXlGsCGKOcZmEyJdpIESTro3CWM YRj+JYmoiP2n474itvD+sITLKm3zAKy4b1WO2K66eZRKVy0UZzp9iPg9fiSgYahL4XyQ gHdNBpjrlz+chvXKbX2I0VRm4qfXpWhNQ1bv8hOyB3pjzaJCa69nF/n+HMwhiMMW+Nm1 aASk0LXozj/NH/OfwvTLivXTtcRrZpWwzKjiJIPff6eLyElBvRgdXwPMHl5pQM+JVr+N BIyZJCQqSZmqp9tu84A/qb5ivmSOGXyz4l4gl94aXujIXVvA+8YvW30UOHReLkCTk0Wb 47OQ== 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=ygdLGS+o3CFJREcOCrfa1rPUTTf2CXzef1CyICbyhxA=; b=DMmeJrvOa+liGDo82lt4Boql5f1jlrub9R1bnx6kLTZwL7/Mr6oogLoh01KqKMgbzB pdhaF9GPiwCNyGZ5ItJ+8oJ6OI7/THRKUN3SjLm5U8dxrBM8Lt913CCbukcOBuvJoXQV lh6kmV4fIoQMzUMv+cQNoi5e9Xk+aWftNrgy7jDpgTEoGpKzKASyHSNAOAjZHIW7d12F +j0JgoZzOlBv3+bEiCFLgiEmcQ27PfvBMh15Cu3XYNFZUrpN+6AZG6qsWyfOXi34rKah 2XFyyV0pu5EV8o8ZJPbwijQEMZ5ZPF/C/gKCi4h3JW8LDvckFGOye2qinMgPUoYNe4Se yqaA== X-Gm-Message-State: AOAM530t7cRLG3f463MRLjSNW8rGORm6SPtlxHCwAW+cEZM46bpKn268 /MlUIk871ewLvTyTGBcbqrI= X-Google-Smtp-Source: ABdhPJw6u3uETtoH6gAkHlVzUekDaPiMLA+8QBddvaPHgV5D/9+gXWeu4VP0tcuObzIDDrONosXdIg== X-Received: by 2002:a05:620a:b1a:: with SMTP id t26mr24757910qkg.353.1600289765489; Wed, 16 Sep 2020 13:56:05 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 13:56:04 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 09/13] ARM: imx: Remove unused IO_ADDRESS() macros Date: Wed, 16 Sep 2020 17:55:18 -0300 Message-Id: <20200916205522.8783-10-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_165607_031592_5587E8AC X-CRM114-Status: GOOD ( 12.40 ) 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:742 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: 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 The IO_ADDRESS() macros were used to retrieve the peripherals base address for board related code. Now that i.MX is a devicetree-only platforms, all base addresses are retrieved from devicetree and these macros are unused. Remove the unused IO_ADDRESS() macros. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mx27.h | 1 - arch/arm/mach-imx/mx31.h | 1 - arch/arm/mach-imx/mx35.h | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/arm/mach-imx/mx27.h b/arch/arm/mach-imx/mx27.h index c6f7aae02b67..d6dae9fa8610 100644 --- a/arch/arm/mach-imx/mx27.h +++ b/arch/arm/mach-imx/mx27.h @@ -112,7 +112,6 @@ #define MX27_IRAM_BASE_ADDR 0xffff4c00 /* internal ram */ #define MX27_IO_P2V(x) IMX_IO_P2V(x) -#define MX27_IO_ADDRESS(x) IOMEM(MX27_IO_P2V(x)) /* fixed interrupt numbers */ #include diff --git a/arch/arm/mach-imx/mx31.h b/arch/arm/mach-imx/mx31.h index d9574671ca5c..192499dcc792 100644 --- a/arch/arm/mach-imx/mx31.h +++ b/arch/arm/mach-imx/mx31.h @@ -117,7 +117,6 @@ #define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000 #define MX31_IO_P2V(x) IMX_IO_P2V(x) -#define MX31_IO_ADDRESS(x) IOMEM(MX31_IO_P2V(x)) /* * Interrupt numbers diff --git a/arch/arm/mach-imx/mx35.h b/arch/arm/mach-imx/mx35.h index 760de6a0af7e..4f0b939c6e03 100644 --- a/arch/arm/mach-imx/mx35.h +++ b/arch/arm/mach-imx/mx35.h @@ -116,7 +116,6 @@ #define MX35_PCMCIA_MEM_BASE_ADDR 0xbc000000 #define MX35_IO_P2V(x) IMX_IO_P2V(x) -#define MX35_IO_ADDRESS(x) IOMEM(MX35_IO_P2V(x)) /* * Interrupt numbers