rtc: mcp795: add alarm support.
authorEmil Bartczak <emilbart@gmail.com>
Sun, 25 Dec 2016 22:07:43 +0000 (23:07 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 11 Jan 2017 16:23:04 +0000 (17:23 +0100)
commit644d4c366b28faaee5d21dc1575a8b9b95a73cac
treee057ff0390e33c54beece4a201a23ca622fa5c0c
parent72877b51d0c5abf21646723f8347c5acf8fb8a45
rtc: mcp795: add alarm support.

This patch adds alarm support. This allows to configure the chip
to generate an interrupt when the alarm matches current time value.
Alarm can be programmed up to one year in the future
and is accurate to the second.

Signed-off-by: Emil Bartczak <emilbart@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-mcp795.c