Skip to content

Commit 8635233

Browse files
abresticralfbaechle
authored andcommitted
MIPS: Move MIPS_GIC_IRQ_BASE into platform irq.h
Define a generic MIPS_GIC_IRQ_BASE which should be suitable for all current boards in <mach-generic/irq.h>. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Reviewed-by: Qais Yousef <qais.yousef@imgtec.com> Tested-by: Qais Yousef <qais.yousef@imgtec.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Jeffrey Deans <jeffrey.deans@imgtec.com> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: Jonas Gorski <jogo@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: David Daney <ddaney.cavm@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7808/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent aa827b7 commit 8635233

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎arch/mips/include/asm/mach-generic/irq.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@
3636

3737
#endif /* CONFIG_IRQ_CPU */
3838

39+
#ifdef CONFIG_MIPS_GIC
40+
#ifndef MIPS_GIC_IRQ_BASE
41+
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
42+
#endif
43+
#endif /* CONFIG_MIPS_GIC */
44+
3945
#endif /* __ASM_MACH_GENERIC_IRQ_H */

‎arch/mips/include/asm/mips-boards/maltaint.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#ifndef _MIPS_MALTAINT_H
1111
#define _MIPS_MALTAINT_H
1212

13-
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
14-
1513
/*
1614
* Interrupts 0..15 are used for Malta ISA compatible interrupts
1715
*/

‎arch/mips/include/asm/mips-boards/sead3int.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@
1414
#define GIC_BASE_ADDR 0x1b1c0000
1515
#define GIC_ADDRSPACE_SZ (128 * 1024)
1616

17-
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
18-
1917
#endif /* !(_MIPS_SEAD3INT_H) */

0 commit comments

Comments
 (0)