summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sa1100.c
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2014-06-06 14:36:12 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 16:08:09 -0700
commitab7f580b8e6ca9b90a00a28e7edfe2d9e5b8fed9 (patch)
tree07e5f5a10cd550dee85df832883ca25d6147f841 /drivers/rtc/rtc-sa1100.c
parent9dcc87fec8947308e0111c65dcd881e6aa5b1673 (diff)
downloadlinux-stable-ab7f580b8e6ca9b90a00a28e7edfe2d9e5b8fed9.tar.gz
linux-stable-ab7f580b8e6ca9b90a00a28e7edfe2d9e5b8fed9.tar.bz2
linux-stable-ab7f580b8e6ca9b90a00a28e7edfe2d9e5b8fed9.zip
drivers/rtc/rtc-omap.c: enable RTC_IRQWAKEEN bits when Alarm is set
When RTC CLKTRCTRL bit is configured in HW_AUTO, module goes to sleep in IDLE state. The Alarm SWakeup event can be used to wakeup the RTC when it is in IDLE state. In order to do so, the alarm needs to be set and enabled before RTC enters the IDLE state. Also the wakeup generation for alarm/timer event needs to be set (bits [1:0] in RTC_IRQWAKEEN register). Currently RTC_IRQWAKEEN bits are set only in suspend/resume paths. With this ALARM interrupts are not generated when it enters IDLE state. So programming the RTC_IRQWAKEEN bits when ever ALARM is set. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Cc: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-sa1100.c')
0 files changed, 0 insertions, 0 deletions