Lines Matching refs:rtc_write
66 static void rtc_write (uchar reg, uchar val);
98 rtc_write (RTC_STAT_REG_ADDR, in rtc_get()
132 rtc_write (RTC_YR_REG_ADDR, bin2bcd (tmp->tm_year % 100)); in rtc_set()
135 rtc_write (RTC_MON_REG_ADDR, bin2bcd (tmp->tm_mon) | century); in rtc_set()
137 rtc_write (RTC_DAY_REG_ADDR, bin2bcd (tmp->tm_wday + 1)); in rtc_set()
138 rtc_write (RTC_DATE_REG_ADDR, bin2bcd (tmp->tm_mday)); in rtc_set()
139 rtc_write (RTC_HR_REG_ADDR, bin2bcd (tmp->tm_hour)); in rtc_set()
140 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
141 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set()
165 rtc_write (RTC_CTL_REG_ADDR, RTC_DS1337_RESET_VAL); in rtc_reset()
167 rtc_write(RTC_CTL_REG_ADDR, 0x0); /* hw default */ in rtc_reset()
170 rtc_write (RTC_TC_REG_ADDR, CONFIG_RTC_DS1339_TCR_VAL); in rtc_reset()
173 rtc_write(RTC_TC_REG_ADDR, CONFIG_RTC_DS1388_TCR_VAL); in rtc_reset()
189 static void rtc_write (uchar reg, uchar val) in rtc_write() function