diff options
author | Andrea Scian <andrea.scian@dave.eu> | 2015-06-16 11:39:47 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-09-05 13:19:06 +0200 |
commit | 653ebd75e9e469e99a40ab14128d915386dc78c6 (patch) | |
tree | 1afde5a872c74e71f4e06fcdcb895757661bba88 /drivers/rtc/rtc-pcf85063.c | |
parent | 821f51c4da869706356ddecfeeac286bf4df9b98 (diff) | |
download | linux-653ebd75e9e469e99a40ab14128d915386dc78c6.tar.gz linux-653ebd75e9e469e99a40ab14128d915386dc78c6.tar.bz2 linux-653ebd75e9e469e99a40ab14128d915386dc78c6.zip |
rtc: pcf2127: use OFS flag to detect unreliable date and warn the user
The PCF2127 datasheet states that it's wrong to say that the date in
unreliable if BLF (battery low flag) is set but instead, OSF (seconds
register) should be used to check if oscillator, for any reason, stopped.
Battery may be low (usually below 2V5 threshold) but the date may be anyway
correct (typically date is unreliable when input voltage is below 1V2).
Signed-off-by: Andrea Scian <andrea.scian@dave.eu>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85063.c')
0 files changed, 0 insertions, 0 deletions