Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dm41t11.c41 #define RTC_SEC_ADDR 0x0 macro
80 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
82 if( data[RTC_SEC_ADDR] & 0x80 ){ in rtc_get()
86 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get()
130 data[RTC_SEC_ADDR] = bin2bcd(tmp->tm_sec) & 0x7F;/*just in case*/ in rtc_set()
154 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set()
163 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1); in rtc_reset()
165 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()