From 82125db510b46a0bae1cfe6df769bf671f446790 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 30 Jul 2011 22:29:20 +0200 Subject: at91lib: go throguh LowlevelInit even after DFU loader this makes sure the PLL is set up the way at91lib expects it --- at91lib/boards/simtrace/board_cstartup.S | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'at91lib/boards/simtrace/board_cstartup.S') 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 -- cgit v1.2.3