rtc: abx80x: handle the oscillator failure bit
authorMylène Josserand <mylene.josserand@free-electrons.com>
Mon, 21 Mar 2016 17:06:10 +0000 (18:06 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 25 Mar 2016 01:41:13 +0000 (02:41 +0100)
commitee087744247c421c83abea7f01217bfd39b8f5a9
tree19addc9c871e45976fec758034e4a5b407fb8daa
parent59a8383adb75459c9d6766656bccc05950b783ea
rtc: abx80x: handle the oscillator failure bit

Handle the Oscillator Failure ('OF') bit from Oscillator Status register
(0x1D). This bit is cleared on set_time function and is read each time the
date/time is read, but only in case of XT Oscillator selection.
In RC mode, this bit is always set.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-abx80x.c