Other Parts Discussed in Thread: AM3354
I'm using uboot on the am3354 board, the system reset when call rtc32k_enable(), I found that the system is really reset when write the KICK0R register in rtc32k_enable. there is no 32k oscillator on my board, but it works well on different board but same hardware and software configuration.I have no idea on the issue.Could someone help me? thanks.
the sdk version is ti-processor-sdk-linux-am335x-evm-06.01.00.08
the version of uboot in the sdk is:u-boot-2019.01+gitAUTOINC+029e4c009a-g029e4c009a
the code is:
#if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC)
static void rtc32k_enable(void)
{
struct davinci_rtc *rtc = (struct davinci_rtc *)RTC_BASE;
rtc32k_unlock(rtc);
/* Enable the RTC 32K OSC by setting bits 3 and 6. */
writel((1 << 3) | (1 << 6), &rtc->osc);
}
#endif
the register's description is: