Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-ab-b5ze-s3.c58 #define ABB5ZES3_REG_RTC_SC 0x03 /* RTC Seconds register */ macro
208 u8 regs[ABB5ZES3_REG_RTC_SC + ABB5ZES3_RTC_SEC_LEN]; in _abb5zes3_rtc_read_time()
226 if (regs[ABB5ZES3_REG_RTC_SC] & ABB5ZES3_REG_RTC_SC_OSC) in _abb5zes3_rtc_read_time()
229 tm->tm_sec = bcd2bin(regs[ABB5ZES3_REG_RTC_SC] & 0x7F); in _abb5zes3_rtc_read_time()
251 u8 regs[ABB5ZES3_REG_RTC_SC + ABB5ZES3_RTC_SEC_LEN]; in abb5zes3_rtc_set_time()
254 regs[ABB5ZES3_REG_RTC_SC] = bin2bcd(tm->tm_sec); /* MSB=0 clears OSC */ in abb5zes3_rtc_set_time()
262 ret = regmap_bulk_write(data->regmap, ABB5ZES3_REG_RTC_SC, in abb5zes3_rtc_set_time()
263 regs + ABB5ZES3_REG_RTC_SC, in abb5zes3_rtc_set_time()
690 ret = regmap_read(regmap, ABB5ZES3_REG_RTC_SC, &reg); in abb5zes3_rtc_check_setup()