
30 Oct
2020
30 Oct
'20
4:19 a.m.
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