dm: wdt: arm: Move tnetv107x into drivers/watchdog/
[oweals/u-boot.git] / arch / arm / cpu / armv7 / cpu.c
index 9eb484af183644cb0831447a42707d8cc6b5409e..39a80237cd1edf08f23497cc36580aa782701877 100644 (file)
 #include <asm/armv7.h>
 #include <linux/compiler.h>
 
-void __naked save_boot_params_default(u32 r0, u32 r1, u32 r2, u32 r3)
-{
-       /*
-        * Stack pointer is not yet initialized
-        * Don't save anything to stack even if compiled with -O0
-        */
-       asm("bx lr");
-}
-
-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)
 {
@@ -87,5 +77,10 @@ int cleanup_before_linux(void)
         */
        invalidate_dcache_all();
 
+       /*
+        * Some CPU need more cache attention before starting the kernel.
+        */
+       cpu_cache_initialization();
+
        return 0;
 }