Hi,
sdk:psdk-linux-6.03
Customer designed a board without RTC, so he want to disable RTC in SPL. He disable CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC as below.
#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