Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dm41t11.c49 #define RTC_REG_CNT 7 macro
56 #define REG_CNT (RTC_REG_CNT+1)
70 #define REG_CNT (RTC_REG_CNT+1+M41T11_YEAR_SIZE)
78 uchar data[RTC_REG_CNT]; in rtc_get()
80 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
124 uchar data[RTC_REG_CNT]; in rtc_set()
154 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set()
165 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()
H A Dm41t60.c56 #define RTC_REG_CNT 7 macro
192 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) { in rtc_set()