Searched refs:RV3029_W_SEC (Results 1 – 1 of 1) sorted by relevance
56 #define RV3029_W_SEC 0x08 macro84 ret = dm_i2c_read(dev, RV3029_W_SEC, regs, sizeof(regs)); in rv3029_rtc_get()90 tm->tm_sec = bcd2bin(regs[RV3029_W_SEC - RV3029_W_SEC]); in rv3029_rtc_get()91 tm->tm_min = bcd2bin(regs[RV3029_W_MINUTES - RV3029_W_SEC]); in rv3029_rtc_get()95 const u8 _hr = regs[RV3029_W_HOURS - RV3029_W_SEC]; in rv3029_rtc_get()108 tm->tm_mday = bcd2bin(regs[RV3029_W_DATE - RV3029_W_SEC]); in rv3029_rtc_get()139 regs[RV3029_W_SEC - RV3029_W_SEC] = bin2bcd(tm->tm_sec); in rv3029_rtc_set()140 regs[RV3029_W_MINUTES - RV3029_W_SEC] = bin2bcd(tm->tm_min); in rv3029_rtc_set()141 regs[RV3029_W_HOURS - RV3029_W_SEC] = bin2bcd(tm->tm_hour); in rv3029_rtc_set()142 regs[RV3029_W_DATE - RV3029_W_SEC] = bin2bcd(tm->tm_mday); in rv3029_rtc_set()[all …]
Completed in 4 milliseconds