summaryrefslogtreecommitdiff
path: root/cpu/mcf52x2/interrupts.c
diff options
context:
space:
mode:
authorTsiChung Liew <tsicliew@gmail.com>2009-06-12 11:29:00 +0000
committerTsiChung Liew <Tsi-Chung.Liew@freescale.com>2009-07-14 09:27:17 -0500
commitbf9a521529e484b15e8fdb583a607cf7945d2f6b (patch)
treee7af9ed55c84ef664ab9b7d92e91a4fbdf9c800a /cpu/mcf52x2/interrupts.c
parent709b384b6493d9726dce20663ebe31bf7cab2925 (diff)
downloadu-boot-imx-bf9a521529e484b15e8fdb583a607cf7945d2f6b.zip
u-boot-imx-bf9a521529e484b15e8fdb583a607cf7945d2f6b.tar.gz
u-boot-imx-bf9a521529e484b15e8fdb583a607cf7945d2f6b.tar.bz2
ColdFire: Add M5208EVB and MCF520x CPU support
Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Diffstat (limited to 'cpu/mcf52x2/interrupts.c')
-rw-r--r--cpu/mcf52x2/interrupts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpu/mcf52x2/interrupts.c b/cpu/mcf52x2/interrupts.c
index 0181e4b..dff8c6a 100644
--- a/cpu/mcf52x2/interrupts.c
+++ b/cpu/mcf52x2/interrupts.c
@@ -59,13 +59,19 @@ void dtimer_intr_setup(void)
#endif /* CONFIG_MCFTMR */
#endif /* CONFIG_M5272 */
-#if defined(CONFIG_M5282) || defined(CONFIG_M5271) || defined(CONFIG_M5275)
+#if defined(CONFIG_M5208) || defined(CONFIG_M5282) || \
+ defined(CONFIG_M5271) || defined(CONFIG_M5275)
int interrupt_init(void)
{
volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
/* Make sure all interrupts are disabled */
+#if defined(CONFIG_M5208)
+ intp->imrl0 = 0xFFFFFFFF;
+ intp->imrh0 = 0xFFFFFFFF;
+#else
intp->imrl0 |= 0x1;
+#endif
enable_interrupts();
return 0;