From patchwork Tue Nov 17 10:30:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 11911905 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8790C63777 for ; Tue, 17 Nov 2020 10:31:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7EC5A20E65 for ; Tue, 17 Nov 2020 10:31:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cTnpYGJw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7EC5A20E65 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=erBhOXPFvkaishtIklm+PyLW0S09/jHy0046tIfdhF4=; b=cTnpYGJw6pIo3d4bSqE82E+Yl cZmFKExtil48PCeg3sDO9nNrZT3srQTnvqYNYEFDuA+EL9Zh5TT09PQB24QsM60Fz1BCKQVCom0k6 xxaC3B0DrCY7Rx1U2VTNSsLmaGEfsps4YRTS+QRRjpNXe+a0juhIPYJcGmRlqOyWTRp3yHE/bkhf8 iQ3wh1uzU+e7hzSZvHe5Imj9+x9E19AtY95MX4Y+qfD2dda+NYOpSXee6qvQoGUXUPr00yJ/3v5BD /ZFz+wpLzs0g2lkzvX1TUaDO7jyddTq0roYvdO09TK1fCYb0agul23IYPYKjQfbIPJ0hS1TAD8jnR wbaUjhzAQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1keyG6-00075k-Ue; Tue, 17 Nov 2020 10:30:46 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1keyFt-000706-Gt for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2020 10:30:35 +0000 Received: from ramsan.of.borg ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id tNWV2300N4C55Sk06NWVL6; Tue, 17 Nov 2020 11:30:29 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1keyFp-003Bby-0O; Tue, 17 Nov 2020 11:30:29 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1keyFo-008xpM-9O; Tue, 17 Nov 2020 11:30:28 +0100 From: Geert Uytterhoeven To: Magnus Damm Subject: [PATCH 5/7] ARM: shmobile: sh73a0: Use ioremap() to map L2C registers Date: Tue, 17 Nov 2020 11:30:20 +0100 Message-Id: <20201117103022.2136527-6-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201117103022.2136527-1-geert+renesas@glider.be> References: <20201117103022.2136527-1-geert+renesas@glider.be> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_053033_711636_63AD4CF1 X-CRM114-Status: GOOD ( 12.44 ) 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-renesas-soc@vger.kernel.org, Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, Arnd Bergmann Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace using the legacy IOMEM() macro to map the L2C registers by ioremap(). Signed-off-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/setup-sh73a0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index cac92edd2b8879cc..d626bce83462c86e 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -44,7 +44,7 @@ static void __init sh73a0_generic_init(void) { #ifdef CONFIG_CACHE_L2X0 /* Shared attribute override enable, 64K*8way */ - l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff); + l2x0_init(ioremap(0xf0100000, PAGE_SIZE), 0x00400000, 0xc20f0fff); #endif }