rtc-mv: add support for Alarm
authorSaeed Bishara <saeed@marvell.com>
Wed, 16 Dec 2009 00:46:08 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:19:59 +0000 (07:19 -0800)
commitaeedacaeaf9c02dddfeb6af87bef80c96f9050cb
tree3f780d0bf4fd8adf6ec5f37d042e550053a95017
parenta766ae3ebd3575cf8c6b9a39fd5aa66856a578b4
rtc-mv: add support for Alarm

This patch adds the Alarm support, this mode enabled when adding
IORESOURCE_IRQ to the platform device resources.

The patch also enables the wakeup mode, so the wakealarm sysfs file (under
/sys/class/rtc/rtcX/) can be used to configure the alarm clock.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-mv.c