rtc: tx4939: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 3 Mar 2019 22:08:09 +0000 (23:08 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 3 Mar 2019 22:08:09 +0000 (23:08 +0100)
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>
drivers/rtc/rtc-tx4939.c

index 8497fceea27f59c014e15b2c3ccc7274ddc53da0..b405818933fbf50b5530ea9e0632fe740071e731 100644 (file)
@@ -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;