diff options
Diffstat (limited to 'arch/sh/boards/sh03/setup.c')
-rw-r--r-- | arch/sh/boards/sh03/setup.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/arch/sh/boards/sh03/setup.c b/arch/sh/boards/sh03/setup.c index 9c031a8c0a1c..df96312efd45 100644 --- a/arch/sh/boards/sh03/setup.c +++ b/arch/sh/boards/sh03/setup.c | |||
@@ -15,33 +15,9 @@ | |||
15 | #include <asm/sh03/sh03.h> | 15 | #include <asm/sh03/sh03.h> |
16 | #include <asm/addrspace.h> | 16 | #include <asm/addrspace.h> |
17 | 17 | ||
18 | static struct ipr_data ipr_irq_table[] = { | ||
19 | { IRL0_IRQ, 0, IRL0_IPR_POS, IRL0_PRIORITY }, | ||
20 | { IRL1_IRQ, 0, IRL1_IPR_POS, IRL1_PRIORITY }, | ||
21 | { IRL2_IRQ, 0, IRL2_IPR_POS, IRL2_PRIORITY }, | ||
22 | { IRL3_IRQ, 0, IRL3_IPR_POS, IRL3_PRIORITY }, | ||
23 | }; | ||
24 | |||
25 | static unsigned long ipr_offsets[] = { | ||
26 | INTC_IPRD, | ||
27 | }; | ||
28 | |||
29 | static struct ipr_desc ipr_irq_desc = { | ||
30 | .ipr_offsets = ipr_offsets, | ||
31 | .nr_offsets = ARRAY_SIZE(ipr_offsets), | ||
32 | |||
33 | .ipr_data = ipr_irq_table, | ||
34 | .nr_irqs = ARRAY_SIZE(ipr_irq_table), | ||
35 | |||
36 | .chip = { | ||
37 | .name = "IPR-sh03", | ||
38 | }, | ||
39 | }; | ||
40 | |||
41 | static void __init init_sh03_IRQ(void) | 18 | static void __init init_sh03_IRQ(void) |
42 | { | 19 | { |
43 | ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR); | 20 | plat_irq_setup_pins(IRQ_MODE_IRQ); |
44 | register_ipr_controller(&ipr_irq_desc); | ||
45 | } | 21 | } |
46 | 22 | ||
47 | extern void *cf_io_base; | 23 | extern void *cf_io_base; |