aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-03 23:08:09 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-03 23:08:09 +0100
commite866cbdf6e775d14e0c7c3528b2d03ccc29647c1 (patch)
treee98c2e5922f1bfa6d76e09f32020a12b2f6d191f /drivers/rtc
parentrtc: tx4939: remove useless test (diff)
downloadlinux-dev-e866cbdf6e775d14e0c7c3528b2d03ccc29647c1.tar.xz
linux-dev-e866cbdf6e775d14e0c7c3528b2d03ccc29647c1.zip
rtc: tx4939: set range
The TX4939 RTC is a 48bit counter that counts two on every clock edge of 32.768 KHz oscillator clock so it counts 32bit seconds. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-tx4939.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c
index 8497fceea27f..b405818933fb 100644
--- a/drivers/rtc/rtc-tx4939.c
+++ b/drivers/rtc/rtc-tx4939.c
@@ -276,6 +276,7 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev)
rtc->ops = &tx4939_rtc_ops;
rtc->nvram_old_abi = true;
+ rtc->range_max = U32_MAX;
pdata->rtc = rtc;