]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds2404: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 08:24:56 +0000 (10:24 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 20:37:16 +0000 (22:37 +0200)
commit8950592d27088aea7f9fad321e38fa13c1b4c8e3
tree5169c4af60557f5242e709445183bcff209fce70
parentfdaf5291b7ff818f2268e805d2af14be2eafedbc
rtc: ds2404: set range

The real-time clock is a 5-byte binary counter. It is incremented 256 times
per second. The least significant byte is a count of fractional seconds.
The upper four bytes are a count of seconds. The realtime clock can
accumulate 136 years of seconds before rolling over.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds2404.c