/* This function is used to get pmu rtc time.  */
void tls_get_rtc(struct tm *tblock)
/* This function is used to get pmu rtc time.  */
void tls_get_rtc(struct tm *tblock)
{
	int ctrl1 = 0;
	int ctrl2 = 0;
	ctrl1 = tls_reg_read32(HR_PMU_RTC_CTRL1);
	ctrl2 = tls_reg_read32(HR_PMU_RTC_CTRL2);
	tblock->tm_year = ((int)((int)ctrl2 & 0x00007f00) >> 8);
	tblock->tm_mon  = (ctrl2 & 0x0000000f);
	tblock->tm_mday = (ctrl1 & 0x1f000000) >> 24;
	tblock->tm_hour = (ctrl1 & 0x001f0000) >> 16;
	tblock->tm_min  = (ctrl1 & 0x00003f00) >>  8;
	tblock->tm_sec  =  ctrl1 & 0x0000003f;
}