diff options
author | Greg Ungerer <gerg@uclinux.org> | 2009-05-19 00:39:19 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-09-15 19:43:51 -0400 |
commit | f9311f26434cea3e926f56ca2aa3e5740e962c72 (patch) | |
tree | 9845763f1e4fa579b79a076660be5b173f36ce44 /arch/m68knommu/platform | |
parent | f2154bef817ac3d0ea67b52526fd8e88898b66f9 (diff) |
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 <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu/platform')
-rw-r--r-- | arch/m68knommu/platform/coldfire/intc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68knommu/platform/coldfire/intc.c b/arch/m68knommu/platform/coldfire/intc.c index 88bffac50c67..14db26bf6e2f 100644 --- a/arch/m68knommu/platform/coldfire/intc.c +++ b/arch/m68knommu/platform/coldfire/intc.c | |||
@@ -103,10 +103,14 @@ void mcf_autovector(int irq) | |||
103 | 103 | ||
104 | static void intc_irq_mask(unsigned int irq) | 104 | static void intc_irq_mask(unsigned int irq) |
105 | { | 105 | { |
106 | if ((irq >= EIRQ1) && (irq <= EIRQ7)) | ||
107 | mcf_setimr(irq - EIRQ1 + 1); | ||
106 | } | 108 | } |
107 | 109 | ||
108 | static void intc_irq_unmask(unsigned int irq) | 110 | static void intc_irq_unmask(unsigned int irq) |
109 | { | 111 | { |
112 | if ((irq >= EIRQ1) && (irq <= EIRQ7)) | ||
113 | mcf_clrimr(irq - EIRQ1 + 1); | ||
110 | } | 114 | } |
111 | 115 | ||
112 | static int intc_irq_set_type(unsigned int irq, unsigned int type) | 116 | static int intc_irq_set_type(unsigned int irq, unsigned int type) |