Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/rtc/
Drtc-rv3029c2.c68 #define RV3029_A_SC 0x10 macro
356 ret = regmap_bulk_read(rv3029->regmap, RV3029_A_SC, regs, in rv3029_read_alarm()
369 tm->tm_sec = bcd2bin(regs[RV3029_A_SC - RV3029_A_SC] & 0x7f); in rv3029_read_alarm()
370 tm->tm_min = bcd2bin(regs[RV3029_A_MN - RV3029_A_SC] & 0x7f); in rv3029_read_alarm()
371 tm->tm_hour = bcd2bin(regs[RV3029_A_HR - RV3029_A_SC] & 0x3f); in rv3029_read_alarm()
372 tm->tm_mday = bcd2bin(regs[RV3029_A_DT - RV3029_A_SC] & 0x3f); in rv3029_read_alarm()
373 tm->tm_mon = bcd2bin(regs[RV3029_A_MO - RV3029_A_SC] & 0x1f) - 1; in rv3029_read_alarm()
374 tm->tm_year = bcd2bin(regs[RV3029_A_YR - RV3029_A_SC] & 0x7f) + 100; in rv3029_read_alarm()
375 tm->tm_wday = bcd2bin(regs[RV3029_A_DW - RV3029_A_SC] & 0x07) - 1; in rv3029_read_alarm()
400 regs[RV3029_A_SC - RV3029_A_SC] = bin2bcd(tm->tm_sec) | RV3029_A_AE_X; in rv3029_set_alarm()
[all …]