rtc: Set valid date after reset
authorMarek Vasut <marex@denx.de>
Thu, 9 Apr 2015 23:11:54 +0000 (01:11 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 23 Apr 2015 18:56:08 +0000 (14:56 -0400)
commit1a1fa24066895dd4eca340c2c8fffd5f5df4d296
treebf206085c642901c54eb7be8d33b4ccda1cd3816
parent23f2f4329d95c1372a5ec18014a1c8e88c2c0251
rtc: Set valid date after reset

Some RTC chips tend to set garbage date after reset.
This patch sets the date to 2000-01-01 00:00 immediatelly
after the RTC chip reset is issued using the "date reset"
command.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@konsulko.com>
common/cmd_date.c