Files
u-boot/drivers
Heinrich Schuchardt fb71c3f490 rtc: initialize emulated RTC from environment variable
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. Here is an example where the RTC
had not been probed yet:

    => setenv rtc_emul_epoch 1610109000
    => date
    Date: 2021-01-08 (Friday)    Time: 12:30:00

If the variable does not exist, the U-Boot build time is used as fallback.

The environment variable may be set when shutting down the operating system
if the U-Boot environment is exposed to the OS (cf. ENV_IS_IN_FAT and
ENV_IS_IN_EXT4).

Suggested-by: Pablo Sebastián Greco <pgreco@centosproject.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-10-30 14:20:27 +01:00
..
2020-08-03 22:19:54 -04:00
2020-07-27 14:16:29 +05:30
2020-10-22 11:26:14 -04:00
2020-09-01 14:47:43 +02:00
2020-05-18 21:19:18 -04:00
2020-10-23 16:38:31 -04:00
2020-10-22 09:54:53 -04:00
2020-10-22 09:54:54 -04:00
2020-10-16 09:44:27 -04:00
2020-10-22 09:54:52 -04:00
2020-08-03 22:19:54 -04:00
2020-08-24 14:11:31 -04:00