]> git.sur5r.net Git - u-boot/blobdiff - cpu/arm920t/imx/interrupts.c
Complete support for the KwikByte KB920x boards
[u-boot] / cpu / arm920t / imx / interrupts.c
index 2f2e7545699f99ee6951a46b7fa7fd522d70f8e6..03ce06d35abd037ea61b4ab866a002ec082af73e 100644 (file)
@@ -117,4 +117,23 @@ ulong get_tbclk (void)
        return tbclk;
 }
 
+/*
+ * Reset the cpu by setting up the watchdog timer and let him time out
+ */
+void reset_cpu (ulong ignored)
+{
+       /* Disable watchdog and set Time-Out field to 0 */
+       WCR = 0x00000000;
+
+       /* Write Service Sequence */
+       WSR = 0x00005555;
+       WSR = 0x0000AAAA;
+
+       /* Enable watchdog */
+       WCR = 0x00000001;
+
+       while (1);
+       /*NOTREACHED*/
+}
+
 #endif /* defined (CONFIG_IMX) */