summaryrefslogtreecommitdiff
path: root/at91lib/boards/simtrace/board_cstartup.S
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-30 22:29:20 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-30 22:29:20 +0200
commit82125db510b46a0bae1cfe6df769bf671f446790 (patch)
treec954c5c2a689e6cb2d24c9680778578aae7cedfe /at91lib/boards/simtrace/board_cstartup.S
parente927ad57bee4deb1cec236559f2c082342621f4f (diff)
at91lib: go throguh LowlevelInit even after DFU loader
this makes sure the PLL is set up the way at91lib expects it
Diffstat (limited to 'at91lib/boards/simtrace/board_cstartup.S')
-rw-r--r--at91lib/boards/simtrace/board_cstartup.S7
1 files changed, 1 insertions, 6 deletions
diff --git a/at91lib/boards/simtrace/board_cstartup.S b/at91lib/boards/simtrace/board_cstartup.S
index 0752c29..384333d 100644
--- a/at91lib/boards/simtrace/board_cstartup.S
+++ b/at91lib/boards/simtrace/board_cstartup.S
@@ -130,6 +130,7 @@ resetHandler:
/* Set pc to actual code location (i.e. not in remap zone) */
ldr pc, =1f
+#endif /* flash_dfu */
/* Perform low-level initialization of the chip using LowLevelInit() */
1:
@@ -138,12 +139,6 @@ 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 */
ldr r0, =_efixed
personal git repositories of Harald Welte. Your mileage may vary