summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mxc_v2.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 22:48:18 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 22:54:24 +0200
commit180c92c4ae7c76329c990dc55dc3d422e7640527 (patch)
tree0f610b99c90c4f60f89d6fa9bc7a020b80cccd4b /drivers/rtc/rtc-mxc_v2.c
parentrtc: tps6586x: fix possible race condition (diff)
downloadlinux-180c92c4ae7c76329c990dc55dc3d422e7640527.tar.xz
linux-180c92c4ae7c76329c990dc55dc3d422e7640527.zip
rtc: tps6586x: let the core handle rtc range
Let the core handle offsetting and windowing the RTC range. The RTC has a 40-bit counter counting at 1024 Hz. So its maximum value is 2^(40-10) - 1. Also, let the core handle the offset instead of coding it in the callbacks. Keep the default epoch at the beginning of 2009 (this will fail in 2043). Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-mxc_v2.c')
0 files changed, 0 insertions, 0 deletions