summaryrefslogtreecommitdiff
path: root/drivers/accessibility
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-24 03:08:53 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-17 16:20:49 +0300
commit188306ac9536ec47674ffa9dd330f69927679aeb (patch)
tree1f236c578142e0f542d2226fc1d7eca733c1881e /drivers/accessibility
parente5aac267a10a8fd571032ffba42ccb61ea16ca80 (diff)
downloadlinux-188306ac9536ec47674ffa9dd330f69927679aeb.tar.xz
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>
Diffstat (limited to 'drivers/accessibility')
0 files changed, 0 insertions, 0 deletions