]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm946es/cpu.c
arm64: Handle arbitrary CONFIG_SYS_MALLOC_F_LEN values
[u-boot] / arch / arm / cpu / arm946es / cpu.c
index 0c8d92d737a28f59a597ebf82310d7b5ea9e2f4f..5d864b901298e3b76da335676521f3846bf88002 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <asm/system.h>
+#include <asm/io.h>
 
 static void cache_flush(void);
 
@@ -51,3 +52,15 @@ static void cache_flush (void)
        asm ("mcr p15, 0, %0, c7, c5, 0": :"r" (i));
        asm ("mcr p15, 0, %0, c7, c6, 0": :"r" (i));
 }
+
+#ifndef CONFIG_ARCH_INTEGRATOR
+
+__attribute__((noreturn)) void reset_cpu(ulong addr __attribute__((unused)))
+{
+       writew(0x0, 0xfffece10);
+       writew(0x8, 0xfffece10);
+       for (;;)
+               ;
+}
+
+#endif /* #ifdef CONFIG_ARCH_INTEGRATOR */