Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-m48t86.c29 #define M48T86_YEAR 0x09 /* 0 - 99 */ macro
81 tm->tm_year = m48t86_readb(dev, M48T86_YEAR) + 100; in m48t86_rtc_read_time()
92 tm->tm_year = bcd2bin(m48t86_readb(dev, M48T86_YEAR)) + 100; in m48t86_rtc_read_time()
121 m48t86_writeb(dev, tm->tm_year % 100, M48T86_YEAR); in m48t86_rtc_set_time()
130 m48t86_writeb(dev, bin2bcd(tm->tm_year % 100), M48T86_YEAR); in m48t86_rtc_set_time()