3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
9 * SPDX-License-Identifier: GPL-2.0+
18 #include <asm/system.h>
20 static void cache_flush(void);
22 int cleanup_before_linux (void)
25 * this function is called just before we call linux
26 * it prepares the processor for linux
28 * we turn off caches etc ...
31 disable_interrupts ();
34 /* turn off I/D-cache */
46 static void cache_flush (void)
50 asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i));