Reset the board
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Wed, 10 Nov 2010 14:43:30 +0000 (09:43 -0500)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Mon, 14 Mar 2011 04:08:27 +0000 (00:08 -0400)
ts7800.S

index 9530a1e..33d7240 100644 (file)
--- a/ts7800.S
+++ b/ts7800.S
@@ -17,4 +17,11 @@ zero_bss_loop:
   b zero_bss_loop
 
 reboot:
+  ldr r0, =0xf1020000
+  ldr r1, [r0, #0x108]
+  orr r1, r1, #4
+  str r1, [r0, #0x108]
+  ldr r1, [r0, #0x10c]
+  orr r1, r1, #1
+  str r1, [r0, #0x10c]
   b .