summaryrefslogtreecommitdiff
path: root/board/integratorap/platform.S
diff options
context:
space:
mode:
Diffstat (limited to 'board/integratorap/platform.S')
-rw-r--r--board/integratorap/platform.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/integratorap/platform.S b/board/integratorap/platform.S
index 480e040cd0d..e9b07178fe6 100644
--- a/board/integratorap/platform.S
+++ b/board/integratorap/platform.S
@@ -31,3 +31,15 @@ platformsetup:
/* All done by Integrator's boot monitor! */
mov pc, lr
+
+ /* Reset using CM control register */
+.global reset_cpu
+reset_cpu:
+ mov r0, #CM_BASE
+ ldr r1,[r0,#OS_CTRL]
+ orr r1,r1,#CMMASK_RESET
+ str r1,[r0]
+
+reset_failed:
+ b reset_failed
+