[PATCH 3/3] rtc: pcf85363: set time accurately

2018-02-23 Thread Alexandre Belloni
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

[PATCH 3/3] rtc: pcf85363: set time accurately

2018-02-23 Thread Alexandre Belloni
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