Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/rtc/
H A Dm41t11.c38 #define RTC_SEC_ADDR 0x0 macro
77 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
79 if( data[RTC_SEC_ADDR] & 0x80 ){ in rtc_get()
83 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get()
127 data[RTC_SEC_ADDR] = bin2bcd(tmp->tm_sec) & 0x7F;/*just in case*/ in rtc_set()
151 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set()
160 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1); in rtc_reset()
162 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()