Skip to content
Commit 180c92c4 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: tps6586x: let the core handle rtc range



Let the core handle offsetting and windowing the RTC range.

The RTC has a 40-bit counter counting at 1024 Hz. So its maximum value is
2^(40-10) - 1. Also, let the core handle the offset instead of coding it in
the callbacks. Keep the default epoch at the beginning of 2009 (this will
fail in 2043).

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 63d22063
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment