diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-07-12 06:49:36 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-30 09:28:11 -0400 |
commit | cc81d7f37273ccb34db99a1f7ce688953a04289d (patch) | |
tree | efd00f3eaa630a5504aa71bc3a2b247362a19295 /arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | |
parent | 86ee4333ba991654f21b7a9e7a7bff0b319f0800 (diff) |
MIPS: BCM63xx: Append irq line to irq_{stat,mask}*
The SMP capable irq controllers have two interrupt output pins which are
controlled through separate registers, so make the variables arrays.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: John Crispin <blogic@openwrt.org>
Cc: Maxime Bizon <mbizon@freebox.fr>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Gregory Fong <gregory.0xf0@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/7318/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h index ab427f8814e6..4794067cb5a7 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | |||
@@ -215,23 +215,23 @@ | |||
215 | 215 | ||
216 | /* Interrupt Mask register */ | 216 | /* Interrupt Mask register */ |
217 | #define PERF_IRQMASK_3368_REG 0xc | 217 | #define PERF_IRQMASK_3368_REG 0xc |
218 | #define PERF_IRQMASK_6328_REG 0x20 | 218 | #define PERF_IRQMASK_6328_REG(x) (0x20 + (x) * 0x10) |
219 | #define PERF_IRQMASK_6338_REG 0xc | 219 | #define PERF_IRQMASK_6338_REG 0xc |
220 | #define PERF_IRQMASK_6345_REG 0xc | 220 | #define PERF_IRQMASK_6345_REG 0xc |
221 | #define PERF_IRQMASK_6348_REG 0xc | 221 | #define PERF_IRQMASK_6348_REG 0xc |
222 | #define PERF_IRQMASK_6358_REG 0xc | 222 | #define PERF_IRQMASK_6358_REG(x) (0xc + (x) * 0x2c) |
223 | #define PERF_IRQMASK_6362_REG 0x20 | 223 | #define PERF_IRQMASK_6362_REG(x) (0x20 + (x) * 0x10) |
224 | #define PERF_IRQMASK_6368_REG 0x20 | 224 | #define PERF_IRQMASK_6368_REG(x) (0x20 + (x) * 0x10) |
225 | 225 | ||
226 | /* Interrupt Status register */ | 226 | /* Interrupt Status register */ |
227 | #define PERF_IRQSTAT_3368_REG 0x10 | 227 | #define PERF_IRQSTAT_3368_REG 0x10 |
228 | #define PERF_IRQSTAT_6328_REG 0x28 | 228 | #define PERF_IRQSTAT_6328_REG(x) (0x28 + (x) * 0x10) |
229 | #define PERF_IRQSTAT_6338_REG 0x10 | 229 | #define PERF_IRQSTAT_6338_REG 0x10 |
230 | #define PERF_IRQSTAT_6345_REG 0x10 | 230 | #define PERF_IRQSTAT_6345_REG 0x10 |
231 | #define PERF_IRQSTAT_6348_REG 0x10 | 231 | #define PERF_IRQSTAT_6348_REG 0x10 |
232 | #define PERF_IRQSTAT_6358_REG 0x10 | 232 | #define PERF_IRQSTAT_6358_REG(x) (0x10 + (x) * 0x2c) |
233 | #define PERF_IRQSTAT_6362_REG 0x28 | 233 | #define PERF_IRQSTAT_6362_REG(x) (0x28 + (x) * 0x10) |
234 | #define PERF_IRQSTAT_6368_REG 0x28 | 234 | #define PERF_IRQSTAT_6368_REG(x) (0x28 + (x) * 0x10) |
235 | 235 | ||
236 | /* External Interrupt Configuration register */ | 236 | /* External Interrupt Configuration register */ |
237 | #define PERF_EXTIRQ_CFG_REG_3368 0x14 | 237 | #define PERF_EXTIRQ_CFG_REG_3368 0x14 |