rtc: imxdi: add the unit recovery code
authorJuergen Borleis <jbe@pengutronix.de>
Mon, 27 Apr 2015 13:59:49 +0000 (15:59 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 19 Jun 2015 18:03:21 +0000 (20:03 +0200)
commitc7e9bbe022c7bee57d9e14b42a7c3732da8db558
tree7b81b55261e6ef1212646f6657262d2e762f7596
parent3ba3fab765beecd599d8e8e00dc2ed4306518dfd
rtc: imxdi: add the unit recovery code

This code is required to recover the unit from a security violation.
Hopefully this code can recover the unit from a hardware related invalid
state as well.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Robert Schwebel <rsc@pengutronix.de>
[rsc: got NDA clearance from Freescale]
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-imxdi.c