[PATCH 0/2] rtc: initialize emulated RTC from environment variable
Heinrich Schuchardt
xypron.glpk at gmx.de
Fri Oct 30 04:19:34 CET 2020
Up to now the emulated RTC is initialized using the U-Boot build time.
With this patch the environment variable 'rtc_emul_epoch' can be used to
provide a better initial time. The variable is a decimal string with
the number of seconds since 1970-01-01.
Heinrich Schuchardt (2):
rtc: use probe() to initialize emulated RTC
rtc: initialize emulated RTC from environment variable
drivers/rtc/Kconfig | 13 ++++++++-----
drivers/rtc/emul_rtc.c | 29 +++++++++++++++++++++++------
2 files changed, 31 insertions(+), 11 deletions(-)
--
2.28.0
More information about the U-Boot
mailing list