rtc: davinci: let the core handle rtc range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 5 Mar 2020 21:50:21 +0000 (22:50 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
commitb6d8f589204802ec531a9de69abd8563f4640d30
treeba9355aec1ed81ecd2b063546898c09292c75999
parentdc924ce9a1848cf5c86c878f0df16c725788e8d3
rtc: davinci: let the core handle rtc range

Let the core handle offsetting and windowing the RTC range.

This rtc has hours, minutes, seconds and 16bit days. As the driver has the
RTC epoch set to year 2000, this means that the end of the range is 2^16
days minus one second later. This is Sun Jun  6 23:59:59 UTC 2179. This
is better than the currently set year 2099.

Link: https://lore.kernel.org/r/20200305215022.32533-3-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-davinci.c