summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233')
-rw-r--r--firmware/target/arm/imx233/rtc-imx233.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/rtc-imx233.h b/firmware/target/arm/imx233/rtc-imx233.h
index bc9e8e0c1e..144809cc90 100644
--- a/firmware/target/arm/imx233/rtc-imx233.h
+++ b/firmware/target/arm/imx233/rtc-imx233.h
@@ -84,7 +84,10 @@ 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;
+#ifdef BM_RTC_PERSISTENT0_DISABLE_XTALOK
+ BF_SET(RTC_PERSISTENT0, XTAL24MHZ_PWRUP, DISABLE_XTALOK);
+#endif
+ BF_CLR(RTC_PERSISTENT0, CLOCKSOURCE);
imx233_rtc_enable_watchdog(false);
}