1
0
Fork 0

rtc: vr41xx: add range

The vr41xx RTC is a 48-bit counter counting at 32.768 kHz, giving a maximum
value of 2^(48-15)-1 seconds.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
hifive-unleashed-5.1
Alexandre Belloni 2018-05-17 22:47:06 +02:00
parent 9a99247c9c
commit 30d7891ae9
1 changed files with 2 additions and 0 deletions

View File

@ -300,6 +300,8 @@ static int rtc_probe(struct platform_device *pdev)
rtc->ops = &vr41xx_rtc_ops;
/* 48-bit counter at 32.768 kHz */
rtc->range_max = (1ULL << 33) - 1;
rtc->max_user_freq = MAX_PERIODIC_RATE;
spin_lock_irq(&rtc_lock);