summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-highbank/reset.c')
-rw-r--r--arch/arm/mach-highbank/reset.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
new file mode 100644
index 0000000000..eb1d11542d
--- /dev/null
+++ b/arch/arm/mach-highbank/reset.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
+ *
+ * GPLv2 only
+ */
+
+#include <common.h>
+#include <io.h>
+
+#include <mach/devices.h>
+
+#include "sysregs.h"
+
+void __noreturn reset_cpu(ulong addr)
+{
+ hingbank_set_pwr_hard_reset();
+ asm(" wfi");
+
+ while(1);
+}