Source
130
130
131
131
aic = gc->private;
132
132
aic->ext_irqs |= (1 << (hwirq % 32));
133
133
}
134
134
}
135
135
136
136
#define AT91_RTC_IDR 0x24
137
137
#define AT91_RTC_IMR 0x28
138
138
#define AT91_RTC_IRQ_MASK 0x1f
139
139
140
-
void __init aic_common_rtc_irq_fixup(struct device_node *root)
140
+
void __init aic_common_rtc_irq_fixup(void)
141
141
{
142
142
struct device_node *np;
143
143
void __iomem *regs;
144
144
145
145
np = of_find_compatible_node(NULL, NULL, "atmel,at91rm9200-rtc");
146
146
if (!np)
147
147
np = of_find_compatible_node(NULL, NULL,
148
148
"atmel,at91sam9x5-rtc");
149
149
150
150
if (!np)
158
158
159
159
writel(AT91_RTC_IRQ_MASK, regs + AT91_RTC_IDR);
160
160
161
161
iounmap(regs);
162
162
}
163
163
164
164
#define AT91_RTT_MR 0x00 /* Real-time Mode Register */
165
165
#define AT91_RTT_ALMIEN (1 << 16) /* Alarm Interrupt Enable */
166
166
#define AT91_RTT_RTTINCIEN (1 << 17) /* Real Time Timer Increment Interrupt Enable */
167
167
168
-
void __init aic_common_rtt_irq_fixup(struct device_node *root)
168
+
void __init aic_common_rtt_irq_fixup(void)
169
169
{
170
170
struct device_node *np;
171
171
void __iomem *regs;
172
172
173
173
/*
174
174
* The at91sam9263 SoC has 2 instances of the RTT block, hence we
175
175
* iterate over the DT to find each occurrence.
176
176
*/
177
177
for_each_compatible_node(np, NULL, "atmel,at91sam9260-rtt") {
178
178
regs = of_iomap(np, 0);
191
191
{
192
192
struct device_node *root = of_find_node_by_path("/");
193
193
const struct of_device_id *match;
194
194
195
195
if (!root)
196
196
return;
197
197
198
198
match = of_match_node(matches, root);
199
199
200
200
if (match) {
201
-
void (*fixup)(struct device_node *) = match->data;
202
-
fixup(root);
201
+
void (*fixup)(void) = match->data;
202
+
fixup();
203
203
}
204
204
205
205
of_node_put(root);
206
206
}
207
207
208
208
struct irq_domain *__init aic_common_of_init(struct device_node *node,
209
209
const struct irq_domain_ops *ops,
210
210
const char *name, int nirqs,
211
211
const struct of_device_id *matches)
212
212
{