From: Thomas Lange Date: Sun, 3 May 2009 18:07:33 +0000 (+0200) Subject: ARM DaVinci: Reset with watchdog enabled X-Git-Tag: v2009.08-rc1~153^2~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ae0f35fd60c7345446835b95a4daff356e1f031;p=u-boot 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. Signed-off-by: Thomas Lange --- diff --git a/cpu/arm926ejs/davinci/reset.S b/cpu/arm926ejs/davinci/reset.S index a687d44035..ba0a7c3b4b 100644 --- a/cpu/arm926ejs/davinci/reset.S +++ b/cpu/arm926ejs/davinci/reset.S @@ -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