rtc: at91sam9: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:40:39 +0000 (13:40 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:09 +0000 (10:07 +0200)
The AT91 RTT is a 32bit second counter that is saved in a 32bit global
purpose register.

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-at91sam9.c

index cbbf8121dca05f4286c3d9368e03e97056c72cde..5ab13fe561649796d63a5c715cd054d2a9ed586d 100644 (file)
@@ -425,6 +425,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
        }
 
        rtc->rtcdev->ops = &at91_rtc_ops;
+       rtc->rtcdev->range_max = U32_MAX;
 
        /* register irq handler after we know what name we'll use */
        ret = devm_request_irq(&pdev->dev, rtc->irq, at91_rtc_interrupt,