diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2008-07-03 23:37:12 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:33 -0400 |
commit | 6bdfb22a8e1ffa37ae4ad35b87cb02958d1901e5 (patch) | |
tree | afc8f27f1044be5787fb38d181292dd861f9a1c5 /arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |
parent | f12ae6bc4ad0054386b380dbf90e63617cd5ab92 (diff) |
sh: add interrupt ack code to sh4a
This patch is based on interrupt acknowledge code for external
interrupt sources on sh3 processors and adds on sh4a processors.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7763.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7763.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c index 3b278df8a53b..3c5b629887a8 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |||
@@ -296,9 +296,14 @@ static struct intc_sense_reg irq_sense_registers[] __initdata = { | |||
296 | IRQ4, IRQ5, IRQ6, IRQ7 } }, | 296 | IRQ4, IRQ5, IRQ6, IRQ7 } }, |
297 | }; | 297 | }; |
298 | 298 | ||
299 | static DECLARE_INTC_DESC(intc_irq_desc, "sh7763-irq", irq_vectors, | 299 | static struct intc_mask_reg irq_ack_registers[] __initdata = { |
300 | NULL, irq_mask_registers, irq_prio_registers, | 300 | { 0xffd00024, 0, 32, /* INTREQ */ |
301 | irq_sense_registers); | 301 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, |
302 | }; | ||
303 | |||
304 | static DECLARE_INTC_DESC_ACK(intc_irq_desc, "sh7763-irq", irq_vectors, | ||
305 | NULL, irq_mask_registers, irq_prio_registers, | ||
306 | irq_sense_registers, irq_ack_registers); | ||
302 | 307 | ||
303 | 308 | ||
304 | /* External interrupt pins in IRL mode */ | 309 | /* External interrupt pins in IRL mode */ |