aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVesa Jääskeläinen <[email protected]>2016-12-23 13:15:58 +0200
committerAlexandre Belloni <[email protected]>2017-01-10 01:32:33 +0100
commitaecb57da7ae9df1f9c2eb11788888b135ddc0203 (patch)
treeaf6d68f72221bba0372808210cd4749fc3b43de1 /include/linux
parent666b5d1e9f8762300a410f9548b6e370d71dd382 (diff)
rtc: tps65910: Add RTC calibration support
Texas Instrument's TPS65910 has support for compensating RTC crystal inaccuracies. When enabled every hour RTC counter value will be compensated with two's complement value. Signed-off-by: Vesa Jääskeläinen <[email protected]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/tps65910.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
index 6483a6fdce59..ffb21e79204d 100644
--- a/include/linux/mfd/tps65910.h
+++ b/include/linux/mfd/tps65910.h
@@ -134,6 +134,7 @@
/* RTC_CTRL_REG bitfields */
#define TPS65910_RTC_CTRL_STOP_RTC 0x01 /*0=stop, 1=run */
+#define TPS65910_RTC_CTRL_AUTO_COMP 0x04
#define TPS65910_RTC_CTRL_GET_TIME 0x40
/* RTC_STATUS_REG bitfields */