Skip to content
Snippets Groups Projects
Commit 53e6f6a6 authored by Mathieu J. Poirier's avatar Mathieu J. Poirier Committed by Albert ARIBAUD
Browse files

armv7: Adding cpu specific cache managmenent


Some CPU (i.e u8500) need more cache management before launching
the Linux kernel.

Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarJohn Rigby <john.rigby@linaro.org>
parent 10ed93dc
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
#include <asm/system.h>
#include <asm/cache.h>
#include <asm/armv7.h>
#include <linux/compiler.h>
void save_boot_params_default(u32 r0, u32 r1, u32 r2, u32 r3)
{
......@@ -44,6 +45,8 @@ void save_boot_params_default(u32 r0, u32 r1, u32 r2, u32 r3)
void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3)
__attribute__((weak, alias("save_boot_params_default")));
void __weak cpu_cache_initialization(void){}
int cleanup_before_linux(void)
{
/*
......@@ -81,5 +84,10 @@ int cleanup_before_linux(void)
*/
invalidate_dcache_all();
/*
* Some CPU need more cache attention before starting the kernel.
*/
cpu_cache_initialization();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment