rtc: pcf2127: Run a OTP refresh if not done before
authorPhilipp Rosenberger <p.rosenberger@kunbus.com>
Mon, 18 Jan 2021 08:57:52 +0000 (09:57 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Jan 2021 23:27:06 +0000 (00:27 +0100)
commit15f57b3e3130790b6d06ea04f0c1edf0e5455bdd
tree4f37f6bea788860eb7d14ff38d3fb211e95ae1fc
parentb9ac079abefc1f1cbee8a0f7195bad1d32dc72c7
rtc: pcf2127: Run a OTP refresh if not done before

The datasheet of the PCF2127 states, it is recommended to process an OTP
refresh once the power is up and the oscillator is operating stable. The
OTP refresh takes less than 100 ms to complete.

Signed-off-by: Philipp Rosenberger <p.rosenberger@kunbus.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210118085752.5759-3-p.rosenberger@kunbus.com
drivers/rtc/rtc-pcf2127.c