1
0
Fork 0
forked from len0rd/rockbox

imx233: rtc: Explicitly clear the soft reset bit when initializing

If we come up and the RTC is in a reset state, we need to release that
before trying to initialze anything else.  (See IMX23RM 23.8.1 and 39.3.10)

Change-Id: I1820ab771ba81f7d428d07040b7d188d9f688127
This commit is contained in:
Solomon Peachy 2020-07-01 23:17:38 -04:00
parent 650eaa39c4
commit ff8cca70a4

View file

@ -81,6 +81,8 @@ static inline void imx233_rtc_reset_watchdog(uint32_t ms)
static inline void imx233_rtc_init(void) 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); BF_CLR(RTC_CTRL, CLKGATE);
imx233_rtc_enable_watchdog(false); imx233_rtc_enable_watchdog(false);
} }