mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-30 19:11:37 +02:00
arm: mvebu: lowlevel.S: Use CR_M from asm/system.h
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@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
2a0d9ae414
commit
a7199f4493
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
#include <asm/system.h>
|
||||||
|
|
||||||
ENTRY(arch_very_early_init)
|
ENTRY(arch_very_early_init)
|
||||||
#ifdef CONFIG_ARMADA_38X
|
#ifdef CONFIG_ARMADA_38X
|
||||||
@ -12,7 +13,7 @@ ENTRY(arch_very_early_init)
|
|||||||
* still locked to cache.
|
* still locked to cache.
|
||||||
*/
|
*/
|
||||||
mrc p15, 0, r0, c1, c0, 0
|
mrc p15, 0, r0, c1, c0, 0
|
||||||
bic r0, #1
|
bic r0, #CR_M
|
||||||
mcr p15, 0, r0, c1, c0, 0
|
mcr p15, 0, r0, c1, c0, 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user