]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: ab3100: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Apr 2019 19:59:43 +0000 (21:59 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 11 Apr 2019 14:42:55 +0000 (16:42 +0200)
commit386b5941a0dd18dda24b459a421ddc51d5fb0371
treef753ebc70259eaba8f0406f9fb8397a52676af97
parent56573ca7ee77b37d4995ab3382e891aaec982125
rtc: ab3100: set range

The ab3100 has a 48bit counter running at 65536 Hz (despite one of the
comment). The max value is then (2^48 - 1)/2^16 == 2^32 - 1.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ab3100.c