aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2009-05-06 00:28:25 -0400
committerGreg Ungerer <gerg@uclinux.org>2009-09-15 19:43:48 -0400
commite47cc3d6acacffdc673779a44c21a4a12b20db23 (patch)
treec9ee91eaa1dcd12092e56b84deac38eae921e551 /arch/m68knommu
parent91b1b94f88219ea1b747264f4f6995a1202566cb (diff)
m68knommu: mask off all interrupts in ColdFire intc-simr controller
The ColdFire intc-simr interrupt controller should mask off all interrupt sources at init time. Doing it here instead of separately in each platform setup. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu')
-rw-r--r--arch/m68knommu/platform/coldfire/intc-simr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68knommu/platform/coldfire/intc-simr.c b/arch/m68knommu/platform/coldfire/intc-simr.c
index 86fc2047d7ac..1b01e79c2f63 100644
--- a/arch/m68knommu/platform/coldfire/intc-simr.c
+++ b/arch/m68knommu/platform/coldfire/intc-simr.c
@@ -62,6 +62,11 @@ void __init init_IRQ(void)
62 62
63 init_vectors(); 63 init_vectors();
64 64
65 /* Mask all interrupt sources */
66 __raw_writeb(0xff, MCFINTC0_SIMR);
67 if (MCFINTC1_SIMR)
68 __raw_writeb(0xff, MCFINTC1_SIMR);
69
65 for (irq = 0; (irq < NR_IRQS); irq++) { 70 for (irq = 0; (irq < NR_IRQS); irq++) {
66 irq_desc[irq].status = IRQ_DISABLED; 71 irq_desc[irq].status = IRQ_DISABLED;
67 irq_desc[irq].action = NULL; 72 irq_desc[irq].action = NULL;