提交 255c43ca 编写于 作者: A Alexandre Belloni

rtc: at91sam9: set range

The AT91 RTT is a 32bit second counter that is saved in a 32bit global
purpose register.
Acked-by: NNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
上级 6c7293e7
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册