[PATCH 0/1] rtc: ds1307: Fix incorrect clock reset for DS13xx

Callum Sinclair callum.sinclair at alliedtelesis.co.nz
Tue Aug 10 04:51:14 CEST 2021


The DS1307 driver also supports the DS1337, DS1339 and DS1340 rtc.
However the reset registers between these rtc devices are not the same.
This means calling the rtc reset routine for a DS1307 clock on a DS1340
device will cause the clock to be calibrated incorrectly rather than
correctly reset.

Define different reset routines for the different clock variants to prevent
a rtc reset causing the clock to become incorrectly calibrated rather than
reset.

Callum Sinclair (1):
  rtc: ds1307: Fix incorrect clock reset for DS13xx

 drivers/rtc/ds1307.c | 69 +++++++++++++++++++++++++++++++++++---------
 1 file changed, 56 insertions(+), 13 deletions(-)

-- 
2.32.0



More information about the U-Boot mailing list