Lines Matching refs:rtc_write
280 static void rtc_write (unsigned char reg, unsigned char val);
372 rtc_write (RTC_SECONDS, bin2bcd (tmp->tm_sec)); in rtc_set()
373 rtc_write (RTC_MINUTES, bin2bcd (tmp->tm_min)); in rtc_set()
374 rtc_write (RTC_HOURS, bin2bcd (tmp->tm_hour)); in rtc_set()
375 rtc_write (RTC_DAY_OF_WEEK, bin2bcd (tmp->tm_wday + 1)); in rtc_set()
376 rtc_write (RTC_DATE_OF_MONTH, bin2bcd (tmp->tm_mday)); in rtc_set()
377 rtc_write (RTC_MONTH, bin2bcd (tmp->tm_mon)); in rtc_set()
378 rtc_write (RTC_YEAR, bin2bcd (tmp->tm_year - 2000)); in rtc_set()
400 rtc_write (RTC_CONTROL, 0x00); /* 1st step: reset WP */ in rtc_reset()
401 rtc_write (RTC_CONTROL, 0x00); /* 2nd step: reset 1Hz, AIE1, AIE0 */ in rtc_reset()
404 rtc_write (RTC_SECONDS_ALARM0, 0x00); in rtc_reset()
405 rtc_write (RTC_SECONDS_ALARM1, 0x00); in rtc_reset()
406 rtc_write (RTC_MINUTES_ALARM0, 0x00); in rtc_reset()
407 rtc_write (RTC_MINUTES_ALARM1, 0x00); in rtc_reset()
408 rtc_write (RTC_HOURS_ALARM0, 0x00); in rtc_reset()
409 rtc_write (RTC_HOURS_ALARM1, 0x00); in rtc_reset()
410 rtc_write (RTC_DAY_OF_WEEK_ALARM0, 0x00); in rtc_reset()
411 rtc_write (RTC_DAY_OF_WEEK_ALARM1, 0x00); in rtc_reset()
428 static void rtc_write (unsigned char reg, unsigned char val) in rtc_write() function