Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/rtc/
H A Drv3029.c57 #define RV3029_W_DAYS 0x0C macro
107 tm->tm_wday = bcd2bin(regs[RV3029_W_DAYS - RV3029_W_SEC]) - 1; in rv3029_rtc_get()
139 regs[RV3029_W_DAYS - RV3029_W_SEC] = bin2bcd(tm->tm_wday + 1) & 0x7; in rv3029_rtc_set()
/openbmc/linux/drivers/rtc/
H A Drtc-rv3029c2.c63 #define RV3029_W_DAYS 0x0C macro
343 tm->tm_wday = bcd2bin(regs[RV3029_W_DAYS - RV3029_W_SEC]) - 1; in rv3029_read_time()
433 regs[RV3029_W_DAYS - RV3029_W_SEC] = bin2bcd(tm->tm_wday + 1) & 0x7; in rv3029_set_time()