]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - cpu/mcf52x2/interrupts.c
Merge /home/tur/nand/u-boot/
[karo-tx-uboot.git] / cpu / mcf52x2 / interrupts.c
index fa181d9bcf09206528b1c2ff0cf6db7275f08597..868df39194f1b1682a0f10096fd8ca7d7d1dd3bc 100644 (file)
 #include <asm/immap_5282.h>
 #endif
 
+#ifdef CONFIG_M5249
+#include <asm/m5249.h>
+#endif
+
 
 #define        NR_IRQS         31
 
@@ -46,7 +50,7 @@
 struct interrupt_action {
        interrupt_handler_t *handler;
        void *arg;
-}
+};
 
 static struct interrupt_action irq_vecs[NR_IRQS];
 
@@ -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