summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/reset.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-07-13 16:36:57 +0930
committerJoel Stanley <joel@jms.id.au>2016-07-27 15:44:01 +0930
commita83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7 (patch)
tree3775efb7c903177917da2cba9cd389485a9a531f /arch/arm/mach-aspeed/reset.c
parent19ce924ff914f315dc2fdf79f357825c513aed6e (diff)
downloadtalos-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.tar.gz
talos-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.zip
ARM: AST2500: add support
Extracted from ast_sdk.v00.03.21 which is based on u-boot v2013. Signed-off-by: Joel Stanley <joel@jms.id.au>
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