commit | 7fe8fcee0cf90ef9aa4c6a123b8b6c3925ccded1 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Tue Apr 30 11:28:20 2019 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Tue Apr 30 11:50:22 2019 +0200 |
tree | b65c529efa59ec73bb5bc0b8a120222ce01b6ba7 | |
parent | 3b2dc19ff9a1495cf08752b5a1ba8b986473f39f [diff] |
rtc: jz4740: rework invalid time detection The scratchpad register is used to detect an invalid time when power to the RTC has been lost. Instead of deleting that precious information and set the time to the UNIX epoch, forward it to userspace. Tested-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>