]> git.dujemihanovic.xyz Git - u-boot.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)
commit87e9963d5acaa41f3c54c1dee9159c775352f86a
tree00e9f91b032e54658a8ee3f6558af6777c0eb9bb
parentcbf0ffea14c812a19b2eede887e3db1ccc425cd4
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]