/* This function is used to start pmu rtc timer.  */
void tls_rtc_timer_start(struct tm *tblock)
/* This function is used to start pmu rtc timer.  */
void tls_rtc_timer_start(struct tm *tblock)
{
    int ctrl1 = 0;
    int ctrl2 = 0;
    tls_irq_enable(PMU_IRQn);
    ctrl1 |= tblock->tm_sec;
    ctrl1 |= tblock->tm_min  << 8;
    ctrl1 |= tblock->tm_hour << 16;
    ctrl1 |= tblock->tm_mday << 24;
    ctrl2 |= tblock->tm_mon;
    ctrl2 |= tblock->tm_year << 8;
    tls_reg_write32(HR_PMU_RTC_CTRL2, ctrl2 | BIT(16));
    tls_reg_write32(HR_PMU_RTC_CTRL1, ctrl1 | BIT(31));
    return;
}