]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita386a101ee984aef944eb0afb13b4f391048581b
treee057ff0390e33c54beece4a201a23ca622fa5c0c
parentf8d49ac5ce4380dedd41173211d5386823111bb3
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