Lines Matching refs:mc146818_write8
68 static void mc146818_write8(int reg, uchar val) in mc146818_write8() function
140 mc146818_write8(RTC_CONFIG_B, 0x82); in mc146818_set()
142 mc146818_write8(RTC_YEAR, bin2bcd(tmp->tm_year % 100)); in mc146818_set()
143 mc146818_write8(RTC_MONTH, bin2bcd(tmp->tm_mon)); in mc146818_set()
144 mc146818_write8(RTC_DAY_OF_WEEK, bin2bcd(tmp->tm_wday)); in mc146818_set()
145 mc146818_write8(RTC_DATE_OF_MONTH, bin2bcd(tmp->tm_mday)); in mc146818_set()
146 mc146818_write8(RTC_HOURS, bin2bcd(tmp->tm_hour)); in mc146818_set()
147 mc146818_write8(RTC_MINUTES, bin2bcd(tmp->tm_min)); in mc146818_set()
148 mc146818_write8(RTC_SECONDS, bin2bcd(tmp->tm_sec)); in mc146818_set()
151 mc146818_write8(RTC_CONFIG_B, 0x02); in mc146818_set()
159 mc146818_write8(RTC_CONFIG_B, 0x82); in mc146818_reset()
162 mc146818_write8(RTC_CONFIG_A, 0x20); in mc146818_reset()
163 mc146818_write8(RTC_CONFIG_B, 0x00); in mc146818_reset()
164 mc146818_write8(RTC_CONFIG_B, 0x00); in mc146818_reset()
167 mc146818_write8(RTC_CONFIG_B, 0x02); in mc146818_reset()
184 mc146818_write8(RTC_CONFIG_B, RTC_CONFIG_B_24H); in mc146818_init()
186 mc146818_write8(RTC_CONFIG_A, RTC_CONFIG_A_REF_CLCK_32KHZ | in mc146818_init()
189 mc146818_write8(RTC_CONFIG_D, RTC_CONFIG_D_VALID_RAM_AND_TIME); in mc146818_init()
222 mc146818_write8(reg, val); in rtc_mc146818_write8()
279 mc146818_write8(reg, val); in rtc_write8()