Lines Matching refs:fsl_i2c_base
40 static const struct fsl_i2c_base *i2c_base[4] = {
41 (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_I2C_OFFSET),
43 (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_I2C2_OFFSET),
46 (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_I2C3_OFFSET),
49 (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_I2C4_OFFSET)
119 static uint set_i2c_bus_speed(const struct fsl_i2c_base *base, in set_i2c_bus_speed()
212 static int fsl_i2c_fixup(const struct fsl_i2c_base *base) in fsl_i2c_fixup()
260 static void __i2c_init(const struct fsl_i2c_base *base, int speed, int in __i2c_init()
293 static int i2c_wait4bus(const struct fsl_i2c_base *base) in i2c_wait4bus()
306 static int i2c_wait(const struct fsl_i2c_base *base, int write) in i2c_wait()
343 static int i2c_write_addr(const struct fsl_i2c_base *base, u8 dev, in i2c_write_addr()
358 static int __i2c_write_data(const struct fsl_i2c_base *base, u8 *data, in __i2c_write_data()
373 static int __i2c_read_data(const struct fsl_i2c_base *base, u8 *data, in __i2c_read_data()
404 static int __i2c_read(const struct fsl_i2c_base *base, u8 chip_addr, u8 *offset, in __i2c_read()
451 static int __i2c_write(const struct fsl_i2c_base *base, u8 chip_addr, in __i2c_write()
474 static int __i2c_probe_chip(const struct fsl_i2c_base *base, uchar chip) in __i2c_probe_chip()
486 static uint __i2c_set_bus_speed(const struct fsl_i2c_base *base, in __i2c_set_bus_speed()
578 dev->base = map_sysmem(dev_read_addr(bus), sizeof(struct fsl_i2c_base));