diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-17 22:47:06 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-17 22:54:21 +0200 |
commit | 30d7891ae903d1e2903033a3df453d7533011076 (patch) | |
tree | 330de9433a42e84fc93d53d3ebba16807501241e /drivers/rtc | |
parent | 9a99247c9c1d1c95c6e8153d013979aac6111c6e (diff) | |
download | op-kernel-dev-30d7891ae903d1e2903033a3df453d7533011076.zip op-kernel-dev-30d7891ae903d1e2903033a3df453d7533011076.tar.gz |
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-vr41xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-vr41xx.c b/drivers/rtc/rtc-vr41xx.c index 2f1212a..70f013e 100644 --- a/drivers/rtc/rtc-vr41xx.c +++ b/drivers/rtc/rtc-vr41xx.c @@ -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); |