summaryrefslogtreecommitdiff
path: root/cpu/mcf52x2/interrupts.c
diff options
context:
space:
mode:
authorstroese <stroese>2004-12-16 18:09:49 +0000
committerstroese <stroese>2004-12-16 18:09:49 +0000
commit8c725b9364ac92338d659dd31457223ed0e7f538 (patch)
tree1b3b242cc9c885fbab4fa338868f78a7218536be /cpu/mcf52x2/interrupts.c
parenta20b27a36b7b1f593e18b4efd506e5f01a392dc6 (diff)
downloadu-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.zip
u-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.tar.gz
u-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.tar.bz2
Coldfire MCF5249 support added
Diffstat (limited to 'cpu/mcf52x2/interrupts.c')
-rw-r--r--cpu/mcf52x2/interrupts.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/cpu/mcf52x2/interrupts.c b/cpu/mcf52x2/interrupts.c
index 1836f27..868df39 100644
--- a/cpu/mcf52x2/interrupts.c
+++ b/cpu/mcf52x2/interrupts.c
@@ -37,6 +37,10 @@
#include <asm/immap_5282.h>
#endif
+#ifdef CONFIG_M5249
+#include <asm/m5249.h>
+#endif
+
#define NR_IRQS 31
@@ -142,10 +146,11 @@ void int_handler (struct pt_regs *fp)
irq_vecs[vec -
vec_base].handler (irq_vecs[vec - vec_base].arg);
} else {
- printf ("\nBogus External Interrupt Vector %ld\n", vec);
+ printf ("\nBogus External Interrupt Vector %d\n", vec);
}
}
+
#ifdef CONFIG_M5272
int interrupt_init (void)
{
@@ -172,3 +177,12 @@ int interrupt_init (void)
return 0;
}
#endif
+
+#ifdef CONFIG_M5249
+int interrupt_init (void)
+{
+ enable_interrupts ();
+
+ return 0;
+}
+#endif