summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vexpress/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-vexpress/reset.c')
-rw-r--r--arch/arm/mach-vexpress/reset.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-vexpress/reset.c b/arch/arm/mach-vexpress/reset.c
new file mode 100644
index 0000000000..ad6e06fe5f
--- /dev/null
+++ b/arch/arm/mach-vexpress/reset.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
+ *
+ * GPLv2 only
+ */
+
+#include <common.h>
+#include <io.h>
+#include <linux/amba/sp805.h>
+
+#include <mach/devices.h>
+
+void __iomem *v2m_wdt_base;
+
+void reset_cpu(ulong addr)
+{
+ writel(LOAD_MIN, v2m_wdt_base + WDTLOAD);
+ writeb(RESET_ENABLE, v2m_wdt_base + WDTCONTROL);
+
+ while (1)
+ ;
+}