Home
last modified time | relevance | path

Searched hist:"188306 ac9536ec47674ffa9dd330f69927679aeb" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/rtc/
H A Drtc-pcf85363.cdiff 188306ac9536ec47674ffa9dd330f69927679aeb Sat Feb 24 01:08:53 CET 2018 Alexandre Belloni <alexandre.belloni@bootlin.com> rtc: pcf85363: set time accurately

As per 8.2.6 Setting and reading the time in RTC mode, first stop the clok,
then reset it before setting the date and time registers. Finally, start
the clock.

This uses register address wrap around from 0x2f to 0x00 for efficiency.

This allows to set the clock with a millisecond accuracy (drift is not
corrected in this example):

RTC System
1325388767 1325388767.000029180
1325388768 1325388768.000018362
1325388769 1325388769.000006544
1325388770 1325388769.999992725
1325388771 1325388770.999974544

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>