Searched refs:RTC_REG_CNT (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/drivers/rtc/ |
H A D | m41t11.c | 46 #define RTC_REG_CNT 7 macro 53 #define REG_CNT (RTC_REG_CNT+1) 67 #define REG_CNT (RTC_REG_CNT+1+M41T11_YEAR_SIZE) 75 uchar data[RTC_REG_CNT]; in rtc_get() 77 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get() 121 uchar data[RTC_REG_CNT]; in rtc_set() 151 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set() 162 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()
|
H A D | m41t60.c | 53 #define RTC_REG_CNT 7 macro 189 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) { in rtc_set()
|