]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
rtc: zynqmp: Write Calibration value before setting time
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Tue, 12 Apr 2016 12:15:45 +0000 (17:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 26 Apr 2016 10:38:21 +0000 (12:38 +0200)
commitcbe1ff71bf1a98677b8e14e6d156eafa09d86ca8
treea6a479f881d7fe52d3ac61b863ade9023e5e6c06
parentca5545a0383d016a8556e5b053d2f89538d51888
rtc: zynqmp: Write Calibration value before setting time

It is suggested to program CALIB_WRITE register with the calibration
value before updating the SET_TIME_WRITE register, doing so will
clear the Tick Counter and force the next second to be signaled
exactly in 1 second.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-zynqmp.c