Home
last modified time | relevance | path

Searched refs:M48T59_READ (Results 1 – 1 of 1) sorted by relevance

/drivers/rtc/
Drtc-m48t59.c25 #define M48T59_READ(reg) (pdata->read_byte(dev, pdata->offset + reg)) macro
30 M48T59_WRITE((M48T59_READ(reg) | (mask)), (reg))
32 M48T59_WRITE((M48T59_READ(reg) & ~(mask)), (reg))
74 tm->tm_year = bcd2bin(M48T59_READ(M48T59_YEAR)); in m48t59_rtc_read_time()
76 tm->tm_mon = bcd2bin(M48T59_READ(M48T59_MONTH)) - 1; in m48t59_rtc_read_time()
77 tm->tm_mday = bcd2bin(M48T59_READ(M48T59_MDAY)); in m48t59_rtc_read_time()
79 val = M48T59_READ(M48T59_WDAY); in m48t59_rtc_read_time()
91 tm->tm_hour = bcd2bin(M48T59_READ(M48T59_HOUR) & 0x3F); in m48t59_rtc_read_time()
92 tm->tm_min = bcd2bin(M48T59_READ(M48T59_MIN) & 0x7F); in m48t59_rtc_read_time()
93 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_SEC) & 0x7F); in m48t59_rtc_read_time()
[all …]