]> www.infradead.org Git - users/jedix/linux-maple.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)
commitf630f728a9b114865bcfe16c1d91dff11e89a4b9
treecaaee4c4d386e57f60683a59198745659bd953c0
parent7518dd9a93b9ed1cdcf10caba269d2f3f79ca798
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