[PATCH u-boot-marvell 3/5] arm: mvebu: lowlevel.S: Use CR_M from asm/system.h
Stefan Roese
sr at denx.de
Mon Sep 12 08:58:34 CEST 2022
On 08.09.22 16:06, Marek Behún wrote:
> From: Pali Rohár <pali at kernel.org>
>
> Replace magic constant 1 when disabling MMU by macro CR_M from include
> header file asm/system.h.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Signed-off-by: Marek Behún <kabel at kernel.org>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> 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 <config.h>
> #include <linux/linkage.h>
> +#include <asm/system.h>
>
> 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
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list