Lines Matching refs:rtc_reg
48 u32 rtc_reg;
50 rtc_reg = (bin2bcd(tm->tm_sec) << RTC_SECONDS_OFFS) |
54 writel(rtc_reg, ioaddr + RTC_TIME_REG_OFFS);
56 rtc_reg = (bin2bcd(tm->tm_mday) << RTC_MDAY_OFFS) |
59 writel(rtc_reg, ioaddr + RTC_DATE_REG_OFFS);
136 u32 rtc_reg = 0;
139 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec))
142 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_min))
145 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_hour))
148 writel(rtc_reg, ioaddr + RTC_ALARM_TIME_REG_OFFS);
151 rtc_reg = (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mday))
154 rtc_reg = 0;
157 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mon + 1))
161 rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_year % 100))
164 writel(rtc_reg, ioaddr + RTC_ALARM_DATE_REG_OFFS);