Home
last modified time | relevance | path

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

/linux/drivers/rtc/
A Drtc-ab-eoz9.c50 #define ABEOZ9_REG_SEC 0x08 macro
153 ret = regmap_bulk_read(data->regmap, ABEOZ9_REG_SEC, in abeoz9_rtc_get_time()
161 tm->tm_sec = bcd2bin(regs[ABEOZ9_REG_SEC - ABEOZ9_REG_SEC] & 0x7F); in abeoz9_rtc_get_time()
166 bcd2bin(regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] & 0x1f); in abeoz9_rtc_get_time()
167 if (regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] & ABEOZ9_HOURS_PM) in abeoz9_rtc_get_time()
173 tm->tm_mday = bcd2bin(regs[ABEOZ9_REG_DAYS - ABEOZ9_REG_SEC]); in abeoz9_rtc_get_time()
188 regs[ABEOZ9_REG_SEC - ABEOZ9_REG_SEC] = bin2bcd(tm->tm_sec); in abeoz9_rtc_set_time()
189 regs[ABEOZ9_REG_MIN - ABEOZ9_REG_SEC] = bin2bcd(tm->tm_min); in abeoz9_rtc_set_time()
190 regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC] = bin2bcd(tm->tm_hour); in abeoz9_rtc_set_time()
191 regs[ABEOZ9_REG_DAYS - ABEOZ9_REG_SEC] = bin2bcd(tm->tm_mday); in abeoz9_rtc_set_time()
[all …]

Completed in 3 milliseconds