ARM: mach-shmobile: Run-time IRQ handler for INTCA
Magnus Damm
maintainerPATCH 2/4 ARM: mach-shmobile: Run-time IRQ handler for INTCA
From: Magnus Damm <[email protected]>
Break-out INTC specific IRQ demux code from the file entry-macro-intc.S and register during run-time.
Covers sh7367, sh7377 and sh7372.
Signed-off-by Magnus Damm <[email protected]>
---
arch/arm/mach-shmobile/Makefile | 5 ++ arch/arm/mach-shmobile/board-ap4evb.c | 1 arch/arm/mach-shmobile/board-g3evm.c | 1 arch/arm/mach-shmobile/board-g4evm.c | 1 arch/arm/mach-shmobile/board-mackerel.c | 1 arch/arm/mach-shmobile/entry-intc.S | 57 ++++++++++++++++++++++++++ arch/arm/mach-shmobile/include/mach/common.h | 1 7 files changed, 67 insertions(+)
arch/arm/mach-shmobile/Makefile +5 -0
@@ -18,6 +18,11 @@ pfc-$(CONFIG_ARCH_SH7377) += pfc-sh7377. pfc-$(CONFIG_ARCH_SH7372) += pfc-sh7372.o pfc-$(CONFIG_ARCH_SH73A0) += pfc-sh73a0.o +# IRQ objects +obj-$(CONFIG_ARCH_SH7367) += entry-intc.o +obj-$(CONFIG_ARCH_SH7377) += entry-intc.o +obj-$(CONFIG_ARCH_SH7372) += entry-intc.o + # Board objects obj-$(CONFIG_MACH_G3EVM) += board-g3evm.o obj-$(CONFIG_MACH_G4EVM) += board-g4evm.o
arch/arm/mach-shmobile/board-ap4evb.c +1 -0
@@ -1365,6 +1365,7 @@ static struct sys_timer ap4evb_timer = {MACHINE_START (AP4EVB ,"ap4evb" ) .map_io = ap4evb_map_io, .init_irq = sh7372_init_irq, + .handle_irq = shmobile_handle_irq_intc, .init_machine = ap4evb_init, .timer = &ap4evb_timer,MACHINE_END
arch/arm/mach-shmobile/board-g3evm.c +1 -0
@@ -367,6 +367,7 @@ static struct sys_timer g3evm_timer = {MACHINE_START (G3EVM ,"g3evm" ) .map_io = g3evm_map_io, .init_irq = sh7367_init_irq, + .handle_irq = shmobile_handle_irq_intc, .init_machine = g3evm_init, .timer = &g3evm_timer,MACHINE_END
arch/arm/mach-shmobile/board-g4evm.c +1 -0
@@ -394,6 +394,7 @@ static struct sys_timer g4evm_timer = {MACHINE_START (G4EVM ,"g4evm" ) .map_io = g4evm_map_io, .init_irq = sh7377_init_irq, + .handle_irq = shmobile_handle_irq_intc, .init_machine = g4evm_init, .timer = &g4evm_timer,MACHINE_END
arch/arm/mach-shmobile/board-mackerel.c +59 -1
65 lines not on this page · raw message
arch/arm/mach-shmobile/include/mach/common.h +1 -0
@@ -5,6 +5,7 @@ extern struct sys_timer shmobile_timer;extern void shmobile_setup_console (void );struct clk ;extern int clk_init (void ); +extern void shmobile_handle_irq_intc (struct pt_regs *);extern void sh7367_init_irq (void );extern void sh7367_add_early_devices (void );