Home
last modified time | relevance | path

Searched refs:CONFIG_SYS_I2C_RTC_ADDR (Results 1 – 25 of 56) sorted by relevance

123

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Dm41t11.c33 #if defined(CONFIG_SYS_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
80 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
98 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_get()
106 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_get()
151 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); 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()
167 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); in rtc_reset()
169 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); in rtc_reset()
H A Drv3029.c46 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CLOCK_PAGE, 1, buf, \ in rtc_get()
101 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CLOCK_PAGE, 1, in rtc_set()
114 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL1, 1, in set_eere_bit()
122 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL1, 1, in set_eere_bit()
133 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL_STATUS, in wait_eebusy()
148 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL_RESET, 1, in rtc_reset()
160 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_EEPROM_CTRL, in rtc_reset()
177 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, in rtc_reset()
H A Dds1374.c35 #ifndef CONFIG_SYS_I2C_RTC_ADDR
36 # define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
215 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
221 val |= i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg); in rtc_write()
222 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
224 val = i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg) & ~val; in rtc_write()
225 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
231 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write_raw()
H A Dm41t60.c24 #if defined(CONFIG_SYS_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
65 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_dump()
94 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_validate()
105 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) { in rtc_validate()
141 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_validate()
192 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) { in rtc_set()
235 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CTRL, 1, data + RTC_CTRL, 1)) { in rtc_reset()
H A Drs5c372.c43 #ifndef CONFIG_SYS_I2C_RTC_ADDR
44 #define CONFIG_SYS_I2C_RTC_ADDR 0x32 macro
67 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, len); in rs5c372_readram()
107 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, RS5C372_RAM_SIZE+1); in rs5c372_enable()
208 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 1); in rtc_set()
237 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 8); in rtc_set()
H A Dm41t62.c59 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_get()
95 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_set()
114 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE)) { in rtc_set()
130 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T62_REG_ALARM_HOUR, 1, &val, 1); in rtc_reset()
132 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T62_REG_ALARM_HOUR, 1, &val, 1); in rtc_reset()
H A Dmax6900.c21 #ifndef CONFIG_SYS_I2C_RTC_ADDR
22 #define CONFIG_SYS_I2C_RTC_ADDR 0x50 macro
29 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
34 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Drx8025.c29 #ifndef CONFIG_SYS_I2C_RTC_ADDR
30 # define CONFIG_SYS_I2C_RTC_ADDR 0x32 macro
87 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16)) in rtc_get()
174 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16)) in rtc_reset()
206 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 2) != 0) in rtc_write()
H A Dds1307.c67 #ifndef CONFIG_SYS_I2C_RTC_ADDR
68 # define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
216 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
222 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Dpcf8563.c114 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
119 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Dpt7c4338.c53 return i2c_reg_read(CONFIG_SYS_I2C_RTC_ADDR, reg); in rtc_read()
58 i2c_reg_write(CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Dx1205.c82 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, reg, 2, &val, 1); in rtc_write()
94 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, X1205_CCR_BASE, 2, buf, 8); in rtc_get()
H A Dds3231.c162 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
168 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Disl1208.c141 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
146 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
H A Dds1337.c186 return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg)); in rtc_read()
192 i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val); in rtc_write()
/OK3568_Linux_fs/u-boot/board/freescale/mpc8349itx/
H A Dmpc8349itx.c258 #ifdef CONFIG_SYS_I2C_RTC_ADDR in misc_init_r()
312 #ifdef CONFIG_SYS_I2C_RTC_ADDR in misc_init_r()
315 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, ds1339_data, sizeof(ds1339_data)) in misc_init_r()
359 (CONFIG_SYS_I2C_RTC_ADDR, 0, 1, ds1339_data, in misc_init_r()
/OK3568_Linux_fs/u-boot/drivers/bootcount/
H A Dbootcount_i2c.c21 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_store()
32 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_load()
/OK3568_Linux_fs/u-boot/include/configs/
H A Dxpedite520x.h72 CONFIG_SYS_I2C_RTC_ADDR}
201 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dxpedite550x.h89 CONFIG_SYS_I2C_RTC_ADDR}
235 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dtqma6_wru4.h30 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dls2080ardb.h312 #define CONFIG_SYS_I2C_RTC_ADDR 0x51 macro
315 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dm28evk.h60 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Daristainetos-common.h187 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dpcm052.h78 #define CONFIG_SYS_I2C_RTC_ADDR 0x68 macro
H A Dls1012aqds.h60 #define CONFIG_SYS_I2C_RTC_ADDR 0x51 /* Channel 3*/ macro

123