mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-09 13:16:40 +03:00
Currently the oscillator stop flag (OSF) bit is never checked or cleared on the DS1339 RTC chip. On getting the time from the RTC, check if the OSF bit is set, log a warning, and clear the flag. This matches the behavior of the DS1337 chip. Note that the `date` command always reads from the RTC even when setting or resetting the date, so the OSF flag is cleared in those cases as well. Signed-off-by: Ronan Dalton <ronan.dalton@alliedtelesis.co.nz> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Francesco Dolcini <francesco.dolcini@toradex.com> Cc: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: Simon Glass <sjg@chromium.org>