]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3029: add RTC_VL_READ and RTC_VL_CLEAR support
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:10:16 +0000 (23:10 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:38:02 +0000 (10:38 +0100)
commit0a71da6017b69d45eb4caf02c3b0e668be5856d3
treecaaee4c4d386e57f60683a59198745659bd953c0
parent258827ca6103da95cb3085f54ae0e018c3aa8141
rtc: rv3029: add RTC_VL_READ and RTC_VL_CLEAR support

The RV3029 can report three different conditions: power on, voltage dropped
and data is lost and voltage is low and temperature compensation has
stopped. The first two conditions amount to the same status, the RTC data
is invalid.

VLOW1 has to be cleared manually to resume temperature compensation, this
is achieved using RTC_VL_CLEAR.

Link: https://lore.kernel.org/r/20191214221022.622482-11-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv3029c2.c