From f9311f26434cea3e926f56ca2aa3e5740e962c72 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Tue, 19 May 2009 14:39:19 +1000 Subject: m68knommu: support code to mask external interrupts on old ColdFire CPU's The external interrupts used on the old Coldfire parts with the old style interrupt controller can be properly mask/unmasked in the interrupt handling code. Signed-off-by: Greg Ungerer --- arch/m68knommu/platform/coldfire/intc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/m68knommu/platform/coldfire/intc.c') diff --git a/arch/m68knommu/platform/coldfire/intc.c b/arch/m68knommu/platform/coldfire/intc.c index 88bffac50c6..14db26bf6e2 100644 --- a/arch/m68knommu/platform/coldfire/intc.c +++ b/arch/m68knommu/platform/coldfire/intc.c @@ -103,10 +103,14 @@ void mcf_autovector(int irq) static void intc_irq_mask(unsigned int irq) { + if ((irq >= EIRQ1) && (irq <= EIRQ7)) + mcf_setimr(irq - EIRQ1 + 1); } static void intc_irq_unmask(unsigned int irq) { + if ((irq >= EIRQ1) && (irq <= EIRQ7)) + mcf_clrimr(irq - EIRQ1 + 1); } static int intc_irq_set_type(unsigned int irq, unsigned int type) -- cgit v1.2.3-70-g09d2