diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 05:18:26 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:56 -0500 |
commit | a3f4c927d379cfaa597bc8ff75dc9d28f8d9200e (patch) | |
tree | 39521557543e91134b5a7e190bdf7b7ac2787e04 /arch/arm/mach-pxa/pxa3xx.c | |
parent | 406b005045ad18ffa08c439545801e1c8cec4b5e (diff) |
ARM: PXA SoCs: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index e14818f5d950..a7a19e1cd640 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -229,11 +229,11 @@ static void __init pxa3xx_init_pm(void) | |||
229 | pxa_cpu_pm_fns = &pxa3xx_cpu_pm_fns; | 229 | pxa_cpu_pm_fns = &pxa3xx_cpu_pm_fns; |
230 | } | 230 | } |
231 | 231 | ||
232 | static int pxa3xx_set_wake(unsigned int irq, unsigned int on) | 232 | static int pxa3xx_set_wake(struct irq_data *d, unsigned int on) |
233 | { | 233 | { |
234 | unsigned long flags, mask = 0; | 234 | unsigned long flags, mask = 0; |
235 | 235 | ||
236 | switch (irq) { | 236 | switch (d->irq) { |
237 | case IRQ_SSP3: | 237 | case IRQ_SSP3: |
238 | mask = ADXER_MFP_WSSP3; | 238 | mask = ADXER_MFP_WSSP3; |
239 | break; | 239 | break; |
@@ -322,40 +322,40 @@ static inline void pxa3xx_init_pm(void) {} | |||
322 | #define pxa3xx_set_wake NULL | 322 | #define pxa3xx_set_wake NULL |
323 | #endif | 323 | #endif |
324 | 324 | ||
325 | static void pxa_ack_ext_wakeup(unsigned int irq) | 325 | static void pxa_ack_ext_wakeup(struct irq_data *d) |
326 | { | 326 | { |
327 | PECR |= PECR_IS(irq - IRQ_WAKEUP0); | 327 | PECR |= PECR_IS(d->irq - IRQ_WAKEUP0); |
328 | } | 328 | } |
329 | 329 | ||
330 | static void pxa_mask_ext_wakeup(unsigned int irq) | 330 | static void pxa_mask_ext_wakeup(struct irq_data *d) |
331 | { | 331 | { |
332 | ICMR2 &= ~(1 << ((irq - PXA_IRQ(0)) & 0x1f)); | 332 | ICMR2 &= ~(1 << ((d->irq - PXA_IRQ(0)) & 0x1f)); |
333 | PECR &= ~PECR_IE(irq - IRQ_WAKEUP0); | 333 | PECR &= ~PECR_IE(d->irq - IRQ_WAKEUP0); |
334 | } | 334 | } |
335 | 335 | ||
336 | static void pxa_unmask_ext_wakeup(unsigned int irq) | 336 | static void pxa_unmask_ext_wakeup(struct irq_data *d) |
337 | { | 337 | { |
338 | ICMR2 |= 1 << ((irq - PXA_IRQ(0)) & 0x1f); | 338 | ICMR2 |= 1 << ((d->irq - PXA_IRQ(0)) & 0x1f); |
339 | PECR |= PECR_IE(irq - IRQ_WAKEUP0); | 339 | PECR |= PECR_IE(d->irq - IRQ_WAKEUP0); |
340 | } | 340 | } |
341 | 341 | ||
342 | static int pxa_set_ext_wakeup_type(unsigned int irq, unsigned int flow_type) | 342 | static int pxa_set_ext_wakeup_type(struct irq_data *d, unsigned int flow_type) |
343 | { | 343 | { |
344 | if (flow_type & IRQ_TYPE_EDGE_RISING) | 344 | if (flow_type & IRQ_TYPE_EDGE_RISING) |
345 | PWER |= 1 << (irq - IRQ_WAKEUP0); | 345 | PWER |= 1 << (d->irq - IRQ_WAKEUP0); |
346 | 346 | ||
347 | if (flow_type & IRQ_TYPE_EDGE_FALLING) | 347 | if (flow_type & IRQ_TYPE_EDGE_FALLING) |
348 | PWER |= 1 << (irq - IRQ_WAKEUP0 + 2); | 348 | PWER |= 1 << (d->irq - IRQ_WAKEUP0 + 2); |
349 | 349 | ||
350 | return 0; | 350 | return 0; |
351 | } | 351 | } |
352 | 352 | ||
353 | static struct irq_chip pxa_ext_wakeup_chip = { | 353 | static struct irq_chip pxa_ext_wakeup_chip = { |
354 | .name = "WAKEUP", | 354 | .name = "WAKEUP", |
355 | .ack = pxa_ack_ext_wakeup, | 355 | .irq_ack = pxa_ack_ext_wakeup, |
356 | .mask = pxa_mask_ext_wakeup, | 356 | .irq_mask = pxa_mask_ext_wakeup, |
357 | .unmask = pxa_unmask_ext_wakeup, | 357 | .irq_unmask = pxa_unmask_ext_wakeup, |
358 | .set_type = pxa_set_ext_wakeup_type, | 358 | .irq_set_type = pxa_set_ext_wakeup_type, |
359 | }; | 359 | }; |
360 | 360 | ||
361 | static void __init pxa_init_ext_wakeup_irq(set_wake_t fn) | 361 | static void __init pxa_init_ext_wakeup_irq(set_wake_t fn) |
@@ -368,7 +368,7 @@ static void __init pxa_init_ext_wakeup_irq(set_wake_t fn) | |||
368 | set_irq_flags(irq, IRQF_VALID); | 368 | set_irq_flags(irq, IRQF_VALID); |
369 | } | 369 | } |
370 | 370 | ||
371 | pxa_ext_wakeup_chip.set_wake = fn; | 371 | pxa_ext_wakeup_chip.irq_set_wake = fn; |
372 | } | 372 | } |
373 | 373 | ||
374 | void __init pxa3xx_init_irq(void) | 374 | void __init pxa3xx_init_irq(void) |