imx233: rtc: Initialize PERSISTENT0 register

Prevents the rtc from breaking on power removal

Change-Id: I1e434285ccc27d864d2fd9454993d02cae32711d
This commit is contained in:
Moshe Piekarski 2020-07-27 15:25:06 -04:00 committed by Solomon Peachy
parent cda5b055fe
commit 7f282b9280

View file

@ -84,6 +84,7 @@ static inline void imx233_rtc_init(void)
BF_CLR(RTC_CTRL, SFTRST);
udelay(5); /* only need 3 GPMI clocks (1us) */
BF_CLR(RTC_CTRL, CLKGATE);
HW_RTC_PERSISTENT0_SET=0x082114;
imx233_rtc_enable_watchdog(false);
}