2 * (C) Copyright 2008 Texas Insturments
5 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
6 * Marius Groeger <mgroeger@sysgo.de>
9 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
11 * SPDX-License-Identifier: GPL-2.0+
16 #include <asm/system.h>
17 #include <linux/compiler.h>
19 int cleanup_before_linux(void)
22 * this function is called just before we call linux
23 * it prepares the processor for linux
25 * disable interrupt and turn off caches etc ...
30 * Turn off I-cache and invalidate it
33 invalidate_icache_all();
37 * dcache_disable() in turn flushes the d-cache and disables MMU
40 invalidate_dcache_all();