mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
650eaa39c4
commit
ff8cca70a4
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ static inline void imx233_rtc_reset_watchdog(uint32_t ms)
|
|||
|
||||
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);
|
||||
imx233_rtc_enable_watchdog(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue