Merge branch 'mpc86xx'
[oweals/u-boot.git] / cpu / mcf52x2 / interrupts.c
index fa181d9bcf09206528b1c2ff0cf6db7275f08597..116747ad3aceba5e0e25ee3ba645cda1f9338149 100644 (file)
 #include <watchdog.h>
 #include <asm/processor.h>
 
+#ifdef CONFIG_M5271
+#include <asm/m5271.h>
+#include <asm/immap_5271.h>
+#endif
+
 #ifdef CONFIG_M5272
 #include <asm/m5272.h>
 #include <asm/immap_5272.h>
 #include <asm/immap_5282.h>
 #endif
 
+#ifdef CONFIG_M5249
+#include <asm/m5249.h>
+#endif
+
 
 #define        NR_IRQS         31
 
@@ -46,7 +55,7 @@
 struct interrupt_action {
        interrupt_handler_t *handler;
        void *arg;
-}
+};
 
 static struct interrupt_action irq_vecs[NR_IRQS];
 
@@ -142,10 +151,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)
 {
@@ -166,9 +176,18 @@ int interrupt_init (void)
 }
 #endif
 
-#ifdef CONFIG_M5282
+#if defined(CONFIG_M5282) || defined(CONFIG_M5271)
 int interrupt_init (void)
 {
        return 0;
 }
 #endif
+
+#ifdef CONFIG_M5249
+int interrupt_init (void)
+{
+       enable_interrupts ();
+
+       return 0;
+}
+#endif