public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/1] rtc: ds1307: Fix incorrect clock reset for DS13xx
@ 2021-08-10  2:51 Callum Sinclair
  2021-08-10  2:51 ` [PATCH 1/1] " Callum Sinclair
  0 siblings, 1 reply; 3+ messages in thread
From: Callum Sinclair @ 2021-08-10  2:51 UTC (permalink / raw)
  To: u-boot; +Cc: Callum Sinclair

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-02 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-10  2:51 [PATCH 0/1] rtc: ds1307: Fix incorrect clock reset for DS13xx Callum Sinclair
2021-08-10  2:51 ` [PATCH 1/1] " Callum Sinclair
2021-09-02 13:29   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox