aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-12-14 16:51:22 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-12-17 10:43:16 +0100
commitacac475212cbedb17b321a363a1c878e2b47b37f (patch)
tree0e14ea5ae63ae1cf151a5e51d759533ffcd86b4c
parent9570bcd87f4db255514f43b6701746c412f8fef0 (diff)
downloadu-boot-acac475212cbedb17b321a363a1c878e2b47b37f.zip
u-boot-acac475212cbedb17b321a363a1c878e2b47b37f.tar.gz
u-boot-acac475212cbedb17b321a363a1c878e2b47b37f.tar.bz2
AVR32: Enable interrupts at bootup
The timer code depends on the timer interrupt to keep track of the upper 32 bits of the cycle counter. This obviously doesn't work when interrupts are disabled the whole time. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
-rw-r--r--lib_avr32/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_avr32/board.c b/lib_avr32/board.c
index 11d864f..809ee3b 100644
--- a/lib_avr32/board.c
+++ b/lib_avr32/board.c
@@ -311,6 +311,8 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
dma_alloc_init();
board_init_info();
+ enable_interrupts();
+
bd->bi_flashstart = 0;
bd->bi_flashsize = 0;
bd->bi_flashoffset = 0;