
Hi Wolfgang,
On 12 November 2014 01:12, Wolfgang Denk wd@denx.de wrote:
Dear Simon,
In message 1415751501-23407-11-git-send-email-sjg@chromium.org you wrote:
If the RTC needs to be cleared, write the U-Boot build date to it. In any case make sure the settings are correct.
Is this really a good idea? Why writing the build date? It is as wrong as any other arbitrarily chose point of time, and when each device comes up with a different (incorrect) time this could be pretty much confusing.
If you need a sane time for initialization, would it not make more sense to chose a fixed date? If you don't want to use the epoch (say, to avoid y2038 issues), you could use 2010-01-01 00:00 or similar instead.
If I see the clock comes up at such a date I will notice that this is an uninitialized time. It it comes up with something as "Tue, 11 Nov 2014 17:17:58" I will assume this is a real time, and wonder what's gone wrong that i's in the past.
OK I think going with a 2010 date makes more sense, so I'll drop the build date patch.
Regards, Simon