diff options
| -rw-r--r-- | arch/arm/mach-davinci/cp_intc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 52b287cf3a42..37311d1830eb 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c | |||
| @@ -81,12 +81,23 @@ static int cp_intc_set_irq_type(unsigned int irq, unsigned int flow_type) | |||
| 81 | return 0; | 81 | return 0; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | /* | ||
| 85 | * Faking this allows us to to work with suspend functions of | ||
| 86 | * generic drivers which call {enable|disable}_irq_wake for | ||
| 87 | * wake up interrupt sources (eg RTC on DA850). | ||
| 88 | */ | ||
| 89 | static int cp_intc_set_wake(unsigned int irq, unsigned int on) | ||
| 90 | { | ||
| 91 | return 0; | ||
| 92 | } | ||
| 93 | |||
| 84 | static struct irq_chip cp_intc_irq_chip = { | 94 | static struct irq_chip cp_intc_irq_chip = { |
| 85 | .name = "cp_intc", | 95 | .name = "cp_intc", |
| 86 | .ack = cp_intc_ack_irq, | 96 | .ack = cp_intc_ack_irq, |
| 87 | .mask = cp_intc_mask_irq, | 97 | .mask = cp_intc_mask_irq, |
| 88 | .unmask = cp_intc_unmask_irq, | 98 | .unmask = cp_intc_unmask_irq, |
| 89 | .set_type = cp_intc_set_irq_type, | 99 | .set_type = cp_intc_set_irq_type, |
| 100 | .set_wake = cp_intc_set_wake, | ||
| 90 | }; | 101 | }; |
| 91 | 102 | ||
| 92 | void __init cp_intc_init(void __iomem *base, unsigned short num_irq, | 103 | void __init cp_intc_init(void __iomem *base, unsigned short num_irq, |
