Searched refs:RTC_ADDR_SEC (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-ds1302.c38 #define RTC_ADDR_SEC 0x00 /* Address of second register */ macro
146 tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC)); ds1302_rtc_read_time()
170 ds1302_writebyte(RTC_ADDR_SEC, ds1302_readbyte(RTC_ADDR_SEC) | 0x80); ds1302_rtc_set_time()
172 ds1302_writebyte(RTC_ADDR_SEC, bin2bcd(tm->tm_sec)); ds1302_rtc_set_time()
181 ds1302_writebyte(RTC_ADDR_SEC, ds1302_readbyte(RTC_ADDR_SEC) & ~0x80); ds1302_rtc_set_time()

Completed in 34 milliseconds