Lines Matching refs:RTC_SEC_REG_ADDR
35 #define RTC_SEC_REG_ADDR 0x00 macro
89 sec = rtc_read (RTC_SEC_REG_ADDR); in rtc_get()
105 rtc_write (RTC_SEC_REG_ADDR, in rtc_get()
106 rtc_read (RTC_SEC_REG_ADDR) & ~RTC_SEC_BIT_CH); in rtc_get()
120 rtc_write(RTC_SEC_REG_ADDR, MCP7941X_BIT_ST); in rtc_get()
169 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec) | MCP7941X_BIT_ST); in rtc_set()
171 rtc_write (RTC_SEC_REG_ADDR, bin2bcd (tmp->tm_sec)); in rtc_set()
187 rtc_write (RTC_SEC_REG_ADDR, 0x00); /* clearing Clock Halt */ in rtc_reset()
230 buf[RTC_SEC_REG_ADDR] = bin2bcd(tm->tm_sec); in ds1307_rtc_set()
234 buf[RTC_SEC_REG_ADDR] |= MCP7941X_BIT_ST; in ds1307_rtc_set()
256 if (buf[RTC_SEC_REG_ADDR] & RTC_SEC_BIT_CH) { in ds1307_rtc_get()
259 buf[RTC_SEC_REG_ADDR] &= ~RTC_SEC_BIT_CH; in ds1307_rtc_get()
260 dm_i2c_reg_write(dev, RTC_SEC_REG_ADDR, in ds1307_rtc_get()
261 buf[RTC_SEC_REG_ADDR]); in ds1307_rtc_get()
268 if (buf[RTC_SEC_REG_ADDR] & RTC_SEC_BIT_CH) { in ds1307_rtc_get()
269 buf[RTC_SEC_REG_ADDR] &= ~RTC_SEC_BIT_CH; in ds1307_rtc_get()
270 dm_i2c_reg_write(dev, RTC_SEC_REG_ADDR, in ds1307_rtc_get()
272 dm_i2c_reg_write(dev, RTC_SEC_REG_ADDR, in ds1307_rtc_get()
273 buf[RTC_SEC_REG_ADDR]); in ds1307_rtc_get()
287 if (!(buf[RTC_SEC_REG_ADDR] & MCP7941X_BIT_ST)) { in ds1307_rtc_get()
288 dm_i2c_reg_write(dev, RTC_SEC_REG_ADDR, in ds1307_rtc_get()
295 tm->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in ds1307_rtc_get()
319 ret = dm_i2c_reg_write(dev, RTC_SEC_REG_ADDR, 0x00); in ds1307_rtc_reset()