Searched refs:ABB5ZES3_REG_RTC_SC (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-ab-b5ze-s3.c67 #define ABB5ZES3_REG_RTC_SC 0x03 /* RTC Seconds register */ macro
219 u8 regs[ABB5ZES3_REG_RTC_SC + ABB5ZES3_RTC_SEC_LEN]; _abb5zes3_rtc_read_time()
237 if (regs[ABB5ZES3_REG_RTC_SC] & ABB5ZES3_REG_RTC_SC_OSC) { _abb5zes3_rtc_read_time()
242 tm->tm_sec = bcd2bin(regs[ABB5ZES3_REG_RTC_SC] & 0x7F); _abb5zes3_rtc_read_time()
267 u8 regs[ABB5ZES3_REG_RTC_SC + ABB5ZES3_RTC_SEC_LEN]; abb5zes3_rtc_set_time()
279 regs[ABB5ZES3_REG_RTC_SC] = bin2bcd(tm->tm_sec); /* MSB=0 clears OSC */ abb5zes3_rtc_set_time()
288 ret = regmap_bulk_write(data->regmap, ABB5ZES3_REG_RTC_SC, abb5zes3_rtc_set_time()
289 regs + ABB5ZES3_REG_RTC_SC, abb5zes3_rtc_set_time()
754 ret = regmap_read(regmap, ABB5ZES3_REG_RTC_SC, &reg); abb5zes3_rtc_check_setup()

Completed in 31 milliseconds