summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-30 20:10:50 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-30 20:10:50 +0200
commite927ad57bee4deb1cec236559f2c082342621f4f (patch)
tree272a3d053d141578fdc8caf2eac78f6b83bb303c
parent7053b9f5c7a76d9d94d66f2dcd2a8675c821aedd (diff)
at91lib: disable the watchdog when we come out of DFU
-rw-r--r--at91lib/boards/simtrace/board_cstartup.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/at91lib/boards/simtrace/board_cstartup.S b/at91lib/boards/simtrace/board_cstartup.S
index 92bcf8b..0752c29 100644
--- a/at91lib/boards/simtrace/board_cstartup.S
+++ b/at91lib/boards/simtrace/board_cstartup.S
@@ -138,6 +138,11 @@ resetHandler:
ldr r0, =LowLevelInit
mov lr, pc
bx r0
+#else
+ /* explicitly disable the watchdog timer */
+ ldr r0, =AT91C_BASE_WDTC
+ mov r1, #AT91C_WDTC_WDDIS
+ str r1, [r0, #4]
#endif /* flash_dfu */
/* Initialize the relocate segment */
personal git repositories of Harald Welte. Your mileage may vary