All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rtc: initialize emulated RTC from environment variable
@ 2020-10-30  3:19 Heinrich Schuchardt
  2020-10-30  3:19 ` [PATCH 1/2] rtc: use probe() to initialize emulated RTC Heinrich Schuchardt
  2020-10-30  3:19 ` [PATCH 2/2] rtc: initialize emulated RTC from environment variable Heinrich Schuchardt
  0 siblings, 2 replies; 5+ messages in thread
From: Heinrich Schuchardt @ 2020-10-30  3:19 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-03 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30  3:19 [PATCH 0/2] rtc: initialize emulated RTC from environment variable Heinrich Schuchardt
2020-10-30  3:19 ` [PATCH 1/2] rtc: use probe() to initialize emulated RTC Heinrich Schuchardt
2020-11-03 15:12   ` Simon Glass
2020-10-30  3:19 ` [PATCH 2/2] rtc: initialize emulated RTC from environment variable Heinrich Schuchardt
2020-11-03 15:12   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.