Lines Matching refs:rtc_write
29 static void rtc_write (uchar reg, uchar val) in rtc_write() function
88 rtc_write (0x9E, 0x00); in rtc_set()
89 rtc_write (0x80, 0); /* Clear seconds to ensure no rollover */ in rtc_set()
90 rtc_write (0x92, bin2bcd(tmp->tm_year / 100)); in rtc_set()
91 rtc_write (0x8c, bin2bcd(tmp->tm_year % 100)); in rtc_set()
92 rtc_write (0x8a, bin2bcd(tmp->tm_wday)); in rtc_set()
93 rtc_write (0x88, bin2bcd(tmp->tm_mon)); in rtc_set()
94 rtc_write (0x86, bin2bcd(tmp->tm_mday)); in rtc_set()
95 rtc_write (0x84, bin2bcd(tmp->tm_hour)); in rtc_set()
96 rtc_write (0x82, bin2bcd(tmp->tm_min )); in rtc_set()
97 rtc_write (0x80, bin2bcd(tmp->tm_sec )); in rtc_set()