]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/cpu/arm926ejs/cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
4 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
5 * Marius Groeger <mgroeger@sysgo.de>
8 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
19 #include <asm/cache.h>
20 #include <asm/system.h>
22 static void cache_flush(void);
24 int cleanup_before_linux (void)
27 * this function is called just before we call linux
28 * it prepares the processor for linux
30 * we turn off caches etc ...
36 /* turn off I/D-cache */
48 static void cache_flush (void)
50 #if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
53 asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i
));