Lines Matching refs:rtc_write
21 static void rtc_write (uchar reg, uchar val);
78 rtc_write (0x08, bin2bcd(tmp->tm_year % 100)); in rtc_set()
81 rtc_write (0x07, bin2bcd(tmp->tm_mon) | century); in rtc_set()
83 rtc_write (0x06, bin2bcd(tmp->tm_wday)); in rtc_set()
84 rtc_write (0x05, bin2bcd(tmp->tm_mday)); in rtc_set()
85 rtc_write (0x04, bin2bcd(tmp->tm_hour)); in rtc_set()
86 rtc_write (0x03, bin2bcd(tmp->tm_min )); in rtc_set()
87 rtc_write (0x02, bin2bcd(tmp->tm_sec )); in rtc_set()
95 rtc_write (0x00, 0x00); in rtc_reset()
96 rtc_write (0x01, 0x00); in rtc_reset()
97 rtc_write (0x0D, 0x00); in rtc_reset()
100 rtc_write (0x02, rtc_read (0x02) & 0x7F); in rtc_reset()
103 rtc_write (0x09, 0x00); in rtc_reset()
104 rtc_write (0x0A, 0x00); in rtc_reset()
105 rtc_write (0x0B, 0x00); in rtc_reset()
106 rtc_write (0x0C, 0x00); in rtc_reset()
116 static void rtc_write (uchar reg, uchar val) in rtc_write() function