diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2015-05-18 17:01:19 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-05-18 23:00:22 +0200 |
commit | a657d7f679e841664c132cb691ffa44a6cd0bdb3 (patch) | |
tree | c7f942d85113e47c8d1f23417222758d19357e9e /arch/arm/mach-sa1100/irq.c | |
parent | ARM: 8361/1: sa1100: add platform functions to handle PWER settings (diff) | |
download | linux-a657d7f679e841664c132cb691ffa44a6cd0bdb3.tar.xz linux-a657d7f679e841664c132cb691ffa44a6cd0bdb3.zip |
ARM: 8362/1: sa1100: use sa11x0_sc_set_wake() in irq driver
Use new function controlling PWER register in IRQ driver.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/irq.c')
-rw-r--r-- | arch/arm/mach-sa1100/irq.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c index 65aebfa66fe5..6afaa333050b 100644 --- a/arch/arm/mach-sa1100/irq.c +++ b/arch/arm/mach-sa1100/irq.c @@ -18,6 +18,8 @@ #include <linux/ioport.h> #include <linux/syscore_ops.h> +#include <soc/sa1100/pwer.h> + #include <mach/hardware.h> #include <mach/irqs.h> #include <asm/mach/irq.h> @@ -40,19 +42,9 @@ static void sa1100_unmask_irq(struct irq_data *d) ICMR |= BIT(d->hwirq); } -/* - * Apart form GPIOs, only the RTC alarm can be a wakeup event. - */ static int sa1100_set_wake(struct irq_data *d, unsigned int on) { - if (BIT(d->hwirq) == IC_RTCAlrm) { - if (on) - PWER |= PWER_RTC; - else - PWER &= ~PWER_RTC; - return 0; - } - return -EINVAL; + return sa11x0_sc_set_wake(d->hwirq, on); } static struct irq_chip sa1100_normal_chip = { |