]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf347d1f653b31430192c8d99997b6cd9f708d481
tree19addc9c871e45976fec758034e4a5b407fb8daa
parent558c59e366c35710d639dd97408bd50ca3415294
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