]> git.baikalelectronics.ru Git - uboot.git/commit
rtc: provide an emulated RTC
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 22 Oct 2020 21:52:14 +0000 (23:52 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 27 Oct 2020 20:13:15 +0000 (21:13 +0100)
commitffe04b456785f4511f3dfb40d01cd8bd805c109e
tree00e9f91b032e54658a8ee3f6558af6777c0eb9bb
parentc8826e91f025e7e944ab5366022ccddf20f237d4
rtc: provide an emulated RTC

On a board without hardware clock this software real time clock can be
used. The build time is used to initialize the RTC. So you will have
to adjust the time either manually using the 'date' command  or use
the 'sntp' to update the RTC with the time from a network time server.
See CONFIG_CMD_SNTP and CONFIG_BOOTP_NTPSERVER. The RTC time is
advanced according to CPU ticks.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
MAINTAINERS
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/emul_rtc.c [new file with mode: 0644]