rtc: armada38x: reset after rtc power loss
authorBaruch Siach <baruch@tkos.co.il>
Thu, 21 Jun 2018 17:40:23 +0000 (20:40 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 12 Jul 2018 18:16:08 +0000 (20:16 +0200)
commit1a990fefb641398fb580a0ea0be99b0ff27cbb9b
tree152181f3635cff43c34747fc2a14764349f56bcc
parentdff700fa81938d8947c86b7909920e5e5f772afc
rtc: armada38x: reset after rtc power loss

When the RTC block looses power it needs a reset sequence to make it
usable again. Otherwise, writes to the time register have no effect.

This reset sequence combines information from the mvebu_rtc driver in
the Marvell provided U-Boot, and the SolidRun provided U-Boot repo.

Tested on the Armada 388 based SolidRun Clearfog Base.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-armada38x.c