Searched hist:"3 d715ebaf006bd5a495e9a717cf0fc5c260ee738" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pcf2127.c | diff 3d715ebaf006bd5a495e9a717cf0fc5c260ee738 Thu Jun 22 09:57:56 CDT 2023 Hugo Villeneuve <hvilleneuve@dimonoff.com> rtc: pcf2127: adapt time/date registers write sequence for PCF2131
The sequence for updating the time/date registers is slightly different between PCF2127/29 and PCF2131.
For PCF2127/29, during write operations, the time counting circuits (memory locations 03h through 09h) are automatically blocked.
For PCF2131, time/date registers write access requires setting the STOP bit and sending the clear prescaler instruction (CPR). STOP then needs to be released once write operation is completed.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20230622145800.2442116-14-hugo@hugovil.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
|