summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-aspeed/reset.c')
-rw-r--r--arch/arm/mach-aspeed/reset.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-aspeed/reset.c b/arch/arm/mach-aspeed/reset.c
new file mode 100644
index 0000000000..b4d8c40623
--- /dev/null
+++ b/arch/arm/mach-aspeed/reset.c
@@ -0,0 +1,18 @@
+/*
+ * This file is released under the terms of GPL v2 and any later version.
+ * See the file COPYING in the root directory of the source tree for details.
+*/
+
+#include <common.h>
+#include <asm/io.h>
+#include <asm/arch/platform.h>
+
+void reset_cpu(ulong addr)
+{
+ __raw_writel(0x10 , AST_WDT_BASE+0x04);
+ __raw_writel(0x4755, AST_WDT_BASE+0x08);
+ __raw_writel(0x3, AST_WDT_BASE+0x0c);
+
+ while (1)
+ /*nothing*/;
+}
OpenPOWER on IntegriCloud