Fix build regression for Creative ZEN V

Introduced in 297af3a483

Change-Id: I9cf37e27ecdf84b6f0a8b6c8d15b1eae987cedbe
This commit is contained in:
Solomon Peachy 2025-11-28 07:37:20 -05:00
parent a6538abd16
commit 6314eae268

View file

@ -96,10 +96,12 @@ static inline void imx233_rtc_init(void)
#else #else
/* confirmed for CREATIVE_ZEN and CREATIVE_ZENXFI2 */ /* confirmed for CREATIVE_ZEN and CREATIVE_ZENXFI2 */
/* FIXME: test SONY_NWZE360 and SONY_NWZE370 targets */ /* FIXME: test SONY_NWZE360 and SONY_NWZE370 targets */
#ifdef BM_RTC_PERSISTENT0_DISABLE_XTALOK
while (BF_RD(RTC_STAT, NEW_REGS)!=0) {}; while (BF_RD(RTC_STAT, NEW_REGS)!=0) {};
BF_SET(RTC_PERSISTENT0, XTAL32KHZ_PWRUP, CLOCKSOURCE); BF_SET(RTC_PERSISTENT0, XTAL32KHZ_PWRUP, CLOCKSOURCE);
while (BF_RD(RTC_STAT, NEW_REGS)!=0) {}; while (BF_RD(RTC_STAT, NEW_REGS)!=0) {};
BF_CLR(RTC_PERSISTENT0, XTAL24MHZ_PWRUP, DISABLE_XTALOK); BF_CLR(RTC_PERSISTENT0, XTAL24MHZ_PWRUP, DISABLE_XTALOK);
#endif
#endif #endif
imx233_rtc_enable_watchdog(false); imx233_rtc_enable_watchdog(false);
} }