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

Tom Rini trini at konsulko.com
Thu Sep 2 15:29:29 CEST 2021


On Tue, Aug 10, 2021 at 02:51:15PM +1200, Callum Sinclair wrote:

> The ds1307 driver also supports the DS1339 and DS1340.
> However, in ds1307_rtc_reset the register writes assume that the chip
> is a DS1307. This is evident in the writing of bits SQWE, RS1, RS0 to
> the control register. While this applies correctly to the DS1307, on a
> DS1340 the control register doesn't contain those bits (instead, the
> register is used for clock calibration). By writing these bits the
> clock calibration will be changed and the chip can become
> non-functional after a reset call.
> 
> Signed-off-by: Callum Sinclair <callum.sinclair at alliedtelesis.co.nz>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210902/eae96b41/attachment.sig>


More information about the U-Boot mailing list