]> git.sur5r.net Git - u-boot/commitdiff
Coldfire M5271: Activate u-boot system timer interrupt.
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>
Thu, 26 Mar 2009 19:26:01 +0000 (15:26 -0400)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:45:47 +0000 (20:45 +0200)
This patch assigns the u-boot system timer interrupt to
interrupt level 3, priority 6. Without this patch the interrupt
will be a level 0, priority 0, which disables it and cause
u-boot functions that relies on the timer (e.g. sleep command)
to never return.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
include/asm-m68k/immap.h

index 93f730f6d4abb1a79650bb947fc66bd240f5ec3b..6a3ef03288de515500531400e85a5ad8b69f8cc0 100644 (file)
 #define CONFIG_SYS_TMRINTR_NO          (INT0_LO_DTMR3)
 #define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRL_INT22)
 #define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
-#define CONFIG_SYS_TMRINTR_PRI         (0)             /* Level must include inorder to work */
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E) /* Interrupt level 3, priority 6 */
 #define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif