Skip to contentSkip to conversation

ARM DaVinci: Reset with watchdog enabled

PATCH New Thomas Lange 2 participants 2 messages May 3, 2009 – May 15, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM DaVinci: Reset with watchdog enabled

Once the Davinci watchdog has been enabled, the timeout value cannot be changed. If the timeout in use is long, it can take a long time for card to reset. By writing an invalid service key, we can trigger an immediate reset.

---
 cpu/arm926ejs/davinci/reset.S |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
cpu/arm926ejs/davinci/reset.S +4 -0
index a687d44..ba0a7c3 100644
@@ -50,6 +50,10 @@ reset_cpu:
 	str	r1, [r0]
 	ldr	r1, WDTCR_VAL2
 	str	r1, [r0]
+	/* Write an invalid value to the WDKEY field to trigger
+	 * an immediate watchdog reset */
+	mov     r1, $0x4000
+	str     r1, [r0]
 	nop
 	nop
 	nop
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 ARM DaVinci: Reset with watchdog enabled

Quoted 7 lines · Thomas Lange

Once the Davinci watchdog has been enabled, the timeout value cannot be changed. If the timeout in use is long, it can take a long time for card to reset. By writing an invalid service key, we can trigger an immediate reset.

---

Applied to arm-next

Best Regards,
J.