From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEF6EC54EE9 for ; Thu, 8 Sep 2022 14:07:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65EB984B15; Thu, 8 Sep 2022 16:07:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="A7ZOIWwm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 56F0A84B0F; Thu, 8 Sep 2022 16:07:07 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7DC6684B1B for ; Thu, 8 Sep 2022 16:07:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3223BB82073; Thu, 8 Sep 2022 14:07:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E29A3C433D6; Thu, 8 Sep 2022 14:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662646021; bh=KsRaiaxW1BprUeY2vTCQImhh4QmT9PoriJN8XBDT7BI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A7ZOIWwmrgBzWg2of1S4OugbrCQE4DutghR+PdLZdtVVQ/cmUV/nVauFgwLU9N6Sm RecQVkosj3vsYPq+zyDi8nZCpyl4Uun25bIOuHzC4qblv0cMRiO5bLlA63tTiJIeku +yYqT9j0l0VF8X+acB/fIu5vakD2+rmxIt+nFZ+SaSJeG6fSXMkJx11dsohR2uF9IK lmGWXFYEELyedj35sY8wj3fnmeYJKcE8QFgCWnAeazVm6YyBW4RDe6zrM8WUDvp+HW 3OYYawCaAam77RUjARq85eCBlz9XF01zLMSyiDskakqM7g7P14KT7NbxtghcvWIYFp CV3NDsB+e/68Q== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Stefan Roese Cc: pali@kernel.org, U-Boot Mailing List , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell 3/5] arm: mvebu: lowlevel.S: Use CR_M from asm/system.h Date: Thu, 8 Sep 2022 16:06:52 +0200 Message-Id: <20220908140654.7051-4-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220908140654.7051-1-kabel@kernel.org> References: <20220908140654.7051-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Pali Rohár Replace magic constant 1 when disabling MMU by macro CR_M from include header file asm/system.h. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/lowlevel.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/lowlevel.S b/arch/arm/mach-mvebu/lowlevel.S index 2491310eb0..b460382c6b 100644 --- a/arch/arm/mach-mvebu/lowlevel.S +++ b/arch/arm/mach-mvebu/lowlevel.S @@ -2,6 +2,7 @@ #include #include +#include ENTRY(arch_very_early_init) #ifdef CONFIG_ARMADA_38X @@ -12,7 +13,7 @@ ENTRY(arch_very_early_init) * still locked to cache. */ mrc p15, 0, r0, c1, c0, 0 - bic r0, #1 + bic r0, #CR_M mcr p15, 0, r0, c1, c0, 0 #endif -- 2.35.1