diff options
Diffstat (limited to 'arch/sh/boards/snapgear/setup.c')
-rw-r--r-- | arch/sh/boards/snapgear/setup.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/sh/boards/snapgear/setup.c b/arch/sh/boards/snapgear/setup.c index 84271d85a8dd..2b594f600002 100644 --- a/arch/sh/boards/snapgear/setup.c +++ b/arch/sh/boards/snapgear/setup.c | |||
@@ -68,37 +68,11 @@ module_init(eraseconfig_init); | |||
68 | * IRL3 = crypto | 68 | * IRL3 = crypto |
69 | */ | 69 | */ |
70 | 70 | ||
71 | static struct ipr_data ipr_irq_table[] = { | ||
72 | { IRL0_IRQ, 0, IRL0_IPR_POS, IRL0_PRIORITY }, | ||
73 | { IRL1_IRQ, 0, IRL1_IPR_POS, IRL1_PRIORITY }, | ||
74 | { IRL2_IRQ, 0, IRL2_IPR_POS, IRL2_PRIORITY }, | ||
75 | { IRL3_IRQ, 0, IRL3_IPR_POS, IRL3_PRIORITY }, | ||
76 | }; | ||
77 | |||
78 | static unsigned long ipr_offsets[] = { | ||
79 | INTC_IPRD, | ||
80 | }; | ||
81 | |||
82 | static struct ipr_desc ipr_irq_desc = { | ||
83 | .ipr_offsets = ipr_offsets, | ||
84 | .nr_offsets = ARRAY_SIZE(ipr_offsets), | ||
85 | |||
86 | .ipr_data = ipr_irq_table, | ||
87 | .nr_irqs = ARRAY_SIZE(ipr_irq_table), | ||
88 | |||
89 | .chip = { | ||
90 | .name = "IPR-snapgear", | ||
91 | }, | ||
92 | }; | ||
93 | |||
94 | static void __init init_snapgear_IRQ(void) | 71 | static void __init init_snapgear_IRQ(void) |
95 | { | 72 | { |
96 | /* enable individual interrupt mode for externals */ | ||
97 | ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR); | ||
98 | |||
99 | printk("Setup SnapGear IRQ/IPR ...\n"); | 73 | printk("Setup SnapGear IRQ/IPR ...\n"); |
100 | 74 | /* enable individual interrupt mode for externals */ | |
101 | register_ipr_controller(&ipr_irq_desc); | 75 | plat_irq_setup_pins(IRQ_MODE_IRQ); |
102 | } | 76 | } |
103 | 77 | ||
104 | /* | 78 | /* |