diff options
author | Greg Ungerer <gerg@uclinux.org> | 2009-04-28 22:07:13 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-09-15 19:43:42 -0400 |
commit | 277c5e3e26cac45010f57a581c56476639b2cfa0 (patch) | |
tree | fbc4465582bba19a2045eb72c870cde044a5f558 /arch/m68k/include/asm/m532xsim.h | |
parent | 1f946533bb562f5144752ea583cac45e9410fdaa (diff) |
m68knommu: general interrupt controller for ColdFire 532x parts
The ColdFire 532x family of parts uses 2 of the same INTC interrupt
controlers used in the ColdFire 520x family. So modify the code to
support both parts. The extra code for the second INTC controler in
the case of the 520x is easily optimized away to nothing.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/m532xsim.h')
-rw-r--r-- | arch/m68k/include/asm/m532xsim.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/m532xsim.h b/arch/m68k/include/asm/m532xsim.h index 3e80810b3784..41c57e0f445a 100644 --- a/arch/m68k/include/asm/m532xsim.h +++ b/arch/m68k/include/asm/m532xsim.h | |||
@@ -58,10 +58,12 @@ | |||
58 | 58 | ||
59 | #define MCFSIM_IMR_MASKALL 0xFFFFFFFF /* All SIM intr sources */ | 59 | #define MCFSIM_IMR_MASKALL 0xFFFFFFFF /* All SIM intr sources */ |
60 | 60 | ||
61 | #define MCFSIM_IMR_SIMR0 0xFC04801C | 61 | #define MCFINTC0_SIMR 0xFC04801C |
62 | #define MCFSIM_IMR_SIMR1 0xFC04C01C | 62 | #define MCFINTC0_CIMR 0xFC04801D |
63 | #define MCFSIM_IMR_CIMR0 0xFC04801D | 63 | #define MCFINTC0_ICR0 0xFC048040 |
64 | #define MCFSIM_IMR_CIMR1 0xFC04C01D | 64 | #define MCFINTC1_SIMR 0xFC04C01C |
65 | #define MCFINTC1_CIMR 0xFC04C01D | ||
66 | #define MCFINTC1_ICR0 0xFC04C040 | ||
65 | 67 | ||
66 | #define MCFSIM_ICR_TIMER1 (0xFC048040+32) | 68 | #define MCFSIM_ICR_TIMER1 (0xFC048040+32) |
67 | #define MCFSIM_ICR_TIMER2 (0xFC048040+33) | 69 | #define MCFSIM_ICR_TIMER2 (0xFC048040+33) |
@@ -87,16 +89,16 @@ | |||
87 | 89 | ||
88 | 90 | ||
89 | #define mcf_enable_irq0(irq) \ | 91 | #define mcf_enable_irq0(irq) \ |
90 | *((volatile unsigned char*) (MCFSIM_IMR_CIMR0)) = (irq); | 92 | *((volatile unsigned char *) (MCFINTC0_CIMR)) = (irq); |
91 | 93 | ||
92 | #define mcf_enable_irq1(irq) \ | 94 | #define mcf_enable_irq1(irq) \ |
93 | *((volatile unsigned char*) (MCFSIM_IMR_CIMR1)) = (irq); | 95 | *((volatile unsigned char *) (MCFINTC1_CIMR)) = (irq); |
94 | 96 | ||
95 | #define mcf_disable_irq0(irq) \ | 97 | #define mcf_disable_irq0(irq) \ |
96 | *((volatile unsigned char*) (MCFSIM_IMR_SIMR0)) = (irq); | 98 | *((volatile unsigned char *) (MCFINTC0_SIMR)) = (irq); |
97 | 99 | ||
98 | #define mcf_disable_irq1(irq) \ | 100 | #define mcf_disable_irq1(irq) \ |
99 | *((volatile unsigned char*) (MCFSIM_IMR_SIMR1)) = (irq); | 101 | *((volatile unsigned char *) (MCFINTC1_SIMR)) = (irq); |
100 | 102 | ||
101 | /* | 103 | /* |
102 | * Define the Cache register flags. | 104 | * Define the Cache register flags. |