summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorRonan Dalton <[email protected]>2026-05-05 16:25:31 +1200
committerTom Rini <[email protected]>2026-05-14 15:40:52 -0600
commit46606025225274b065490daf50bd58defb6b6659 (patch)
tree51e8ab569b63e1e190057700bdc07dcd3c86ba96 /scripts/basic
parent9a13d08732509fd31e9070989570e6d6bd2ad007 (diff)
rtc: ds1307: Handle oscillator stop flag set on ds1339 chip
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 <[email protected]> Cc: Tom Rini <[email protected]> Cc: Simon Glass <[email protected]> Cc: Francesco Dolcini <[email protected]> Cc: Mark Tomlinson <[email protected]> Cc: Chris Packham <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions