diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-03-11 02:06:58 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-03-15 07:01:57 -0400 |
commit | 57b481436f2a5580054784af8f044d2e3f602b53 (patch) | |
tree | c061e392e9001cdc7798a8cecc5763e605186e05 /arch/m68k | |
parent | ce3de78a1c9504dba1781e47613b397e4028ae2b (diff) |
m68knommu: external interrupt support to ColdFire intc-2 controller
The EDGE Port module of some ColdFire parts using the intc-2 interrupt
controller provides support for 7 external interrupts. These interrupts
go off-chip (that is they are not for internal peripherals). They need
some special handling and have some extra setup registers. Add code to
support them.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/m523xsim.h | 3 | ||||
-rw-r--r-- | arch/m68k/include/asm/m527xsim.h | 3 | ||||
-rw-r--r-- | arch/m68k/include/asm/m54xxsim.h | 10 |
3 files changed, 16 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/m523xsim.h b/arch/m68k/include/asm/m523xsim.h index 3852f074fddd..8996df62ede4 100644 --- a/arch/m68k/include/asm/m523xsim.h +++ b/arch/m68k/include/asm/m523xsim.h | |||
@@ -139,9 +139,12 @@ | |||
139 | /* | 139 | /* |
140 | * EPort | 140 | * EPort |
141 | */ | 141 | */ |
142 | #define MCFEPORT_EPPAR (MCF_IPSBAR + 0x130000) | ||
142 | #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x130002) | 143 | #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x130002) |
144 | #define MCFEPORT_EPIER (MCF_IPSBAR + 0x130003) | ||
143 | #define MCFEPORT_EPDR (MCF_IPSBAR + 0x130004) | 145 | #define MCFEPORT_EPDR (MCF_IPSBAR + 0x130004) |
144 | #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005) | 146 | #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005) |
147 | #define MCFEPORT_EPFR (MCF_IPSBAR + 0x130006) | ||
145 | 148 | ||
146 | /* | 149 | /* |
147 | * Generic GPIO support | 150 | * Generic GPIO support |
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h index c23046ee3a51..74855a66c050 100644 --- a/arch/m68k/include/asm/m527xsim.h +++ b/arch/m68k/include/asm/m527xsim.h | |||
@@ -259,9 +259,12 @@ | |||
259 | /* | 259 | /* |
260 | * EPort | 260 | * EPort |
261 | */ | 261 | */ |
262 | #define MCFEPORT_EPPAR (MCF_IPSBAR + 0x130000) | ||
262 | #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x130002) | 263 | #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x130002) |
264 | #define MCFEPORT_EPIER (MCF_IPSBAR + 0x130003) | ||
263 | #define MCFEPORT_EPDR (MCF_IPSBAR + 0x130004) | 265 | #define MCFEPORT_EPDR (MCF_IPSBAR + 0x130004) |
264 | #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005) | 266 | #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005) |
267 | #define MCFEPORT_EPFR (MCF_IPSBAR + 0x130006) | ||
265 | 268 | ||
266 | /* | 269 | /* |
267 | * GPIO pins setups to enable the UARTs. | 270 | * GPIO pins setups to enable the UARTs. |
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h index daaae276bb09..1ed8bfb02772 100644 --- a/arch/m68k/include/asm/m54xxsim.h +++ b/arch/m68k/include/asm/m54xxsim.h | |||
@@ -50,6 +50,16 @@ | |||
50 | #define MCFGPIO_IRQ_VECBASE -1 | 50 | #define MCFGPIO_IRQ_VECBASE -1 |
51 | 51 | ||
52 | /* | 52 | /* |
53 | * EDGE Port support. | ||
54 | */ | ||
55 | #define MCFEPORT_EPPAR (MCF_MBAR + 0xf00) /* Pin assignment */ | ||
56 | #define MCFEPORT_EPDDR (MCF_MBAR + 0xf04) /* Data direction */ | ||
57 | #define MCFEPORT_EPIER (MCF_MBAR + 0xf05) /* Interrupt enable */ | ||
58 | #define MCFEPORT_EPDR (MCF_MBAR + 0xf08) /* Port data (w) */ | ||
59 | #define MCFEPORT_EPPDR (MCF_MBAR + 0xf09) /* Port data (r) */ | ||
60 | #define MCFEPORT_EPFR (MCF_MBAR + 0xf0c) /* Flags */ | ||
61 | |||
62 | /* | ||
53 | * Some PSC related definitions | 63 | * Some PSC related definitions |
54 | */ | 64 | */ |
55 | #define MCF_PAR_PSC(x) (0x000A4F-((x)&0x3)) | 65 | #define MCF_PAR_PSC(x) (0x000A4F-((x)&0x3)) |