Home
last modified time | relevance | path

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

/u-boot/drivers/rtc/
A Dm41t11.c39 #define RTC_SEC_ADDR 0x0 macro
78 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
80 if( data[RTC_SEC_ADDR] & 0x80 ){ in rtc_get()
84 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get()
128 data[RTC_SEC_ADDR] = bin2bcd(tmp->tm_sec) & 0x7F;/*just in case*/ in rtc_set()
152 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set()
161 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1); in rtc_reset()
163 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()

Completed in 2 milliseconds