Hi,
I am writing a test code for RTC Test in u-boot where i am reading the RTC time as below.
tm->tm_sec = rtc_read(OMAP_RTC_SECONDS_REG);
tm->tm_min = rtc_read(OMAP_RTC_MINUTES_REG);
tm->tm_hour = rtc_read(OMAP_RTC_HOURS_REG);
tm->tm_mday = rtc_read(OMAP_RTC_DAYS_REG);
tm->tm_mon = rtc_read(OMAP_RTC_MONTHS_REG);
tm->tm_year = rtc_read(OMAP_RTC_YEARS_REG);
printf( "Get DATE: %04d-%02d-%02d TIME: %02d:%02d:%02d\n",
tm->tm_year, tm->tm_mon, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
bcd2tm(tm);
printf( "Get DATE: %4d-%02d-%02d TIME: %2d:%02d:%02d\n",
tm->tm_year, tm->tm_mon, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
But the return RTC time is always coming as 100-00-00 00:00:00.
It is not getting increase.
I am using the ti8148EVM to run this code.
what i am doing wrong here and how can i get the updated RTC time.