diff options
author | Baolin Wang | 2018-04-26 10:58:45 +0800 |
---|---|---|
committer | Alexandre Belloni | 2018-05-03 22:11:50 +0200 |
commit | 149aa91cd6d526e7f6eec3490e82eb073c7881f9 (patch) | |
tree | 768f3119fcbf881313709e8bdf1f26805386152a /drivers/rtc | |
parent | 369a30a5f1c9245a214155ee527fa169e7f813ff (diff) |
rtc: sprd: Add RTC hardware range
The SC27xx RTC can support dates from 1970-01-01 00:00:00 to 2149-06-06
23:59:59.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-sc27xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c index ac86322c72bc..6a3876edd8e0 100644 --- a/drivers/rtc/rtc-sc27xx.c +++ b/drivers/rtc/rtc-sc27xx.c @@ -631,6 +631,8 @@ static int sprd_rtc_probe(struct platform_device *pdev) } rtc->rtc->ops = &sprd_rtc_ops; + rtc->rtc->range_min = 0; + rtc->rtc->range_max = 5662310399LL; ret = rtc_register_device(rtc->rtc); if (ret) { dev_err(&pdev->dev, "failed to register rtc device\n"); |