Home
last modified time | relevance | path

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

/external/u-boot/drivers/i2c/
Di2c-uclass-compat.c13 static int i2c_compat_get_device(uint chip_addr, int alen, in i2c_compat_get_device() argument
19 ret = i2c_get_chip_for_busnum(cur_busnum, chip_addr, alen, devp); in i2c_compat_get_device()
25 chip_addr, alen, chip->offset_len); in i2c_compat_get_device()
32 int i2c_probe(uint8_t chip_addr) in i2c_probe() argument
46 return dm_i2c_probe(bus, chip_addr, 0, &dev); in i2c_probe()
49 int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_read() argument
55 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_read()
62 int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer, in i2c_write() argument
68 ret = i2c_compat_get_device(chip_addr, alen, &dev); in i2c_write()
109 uint8_t i2c_reg_read(uint8_t chip_addr, uint8_t offset) in i2c_reg_read() argument
[all …]
Di2c-uclass.c57 msg->addr = chip->chip_addr; in i2c_setup_offset()
86 ptr->addr = chip->chip_addr; in i2c_read_bytewise()
142 ptr->addr = chip->chip_addr; in dm_i2c_read()
249 static int i2c_probe_chip(struct udevice *bus, uint chip_addr, in i2c_probe_chip() argument
257 ret = ops->probe_chip(bus, chip_addr, chip_flags); in i2c_probe_chip()
266 msg->addr = chip_addr; in i2c_probe_chip()
274 static int i2c_bind_driver(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_bind_driver() argument
282 snprintf(name, sizeof(name), "generic_%x", chip_addr); in i2c_bind_driver()
293 chip->chip_addr = chip_addr; in i2c_bind_driver()
314 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_get_chip() argument
[all …]
Dfsl_i2c.c404 static int __i2c_read(const struct fsl_i2c_base *base, u8 chip_addr, u8 *offset, in __i2c_read() argument
420 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0) in __i2c_read()
426 if (dlen && i2c_write_addr(base, chip_addr, in __i2c_read()
431 i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && in __i2c_read()
435 if (dlen && i2c_write_addr(base, chip_addr, I2C_READ_BIT, in __i2c_read()
451 static int __i2c_write(const struct fsl_i2c_base *base, u8 chip_addr, in __i2c_write() argument
459 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && in __i2c_write()
508 static int fsl_i2c_read(struct i2c_adapter *adap, u8 chip_addr, uint offset, in fsl_i2c_read() argument
513 return __i2c_read(i2c_base[adap->hwadapnr], chip_addr, &o[4 - olen], in fsl_i2c_read()
517 static int fsl_i2c_write(struct i2c_adapter *adap, u8 chip_addr, uint offset, in fsl_i2c_write() argument
[all …]
Dast_i2c.c189 static int ast_i2c_read_data(struct udevice *dev, u8 chip_addr, u8 *buffer, in ast_i2c_read_data() argument
196 ret = ast_i2c_start_txn(dev, (chip_addr << 1) | I2C_M_RD); in ast_i2c_read_data()
218 static int ast_i2c_write_data(struct udevice *dev, u8 chip_addr, u8 in ast_i2c_write_data() argument
224 ret = ast_i2c_start_txn(dev, (chip_addr << 1)); in ast_i2c_write_data()
Dintel_i2c.c233 static int intel_i2c_probe_chip(struct udevice *bus, uint chip_addr, in intel_i2c_probe_chip() argument
239 return smbus_block_read(i2c->base, chip_addr, buf, 0, 1); in intel_i2c_probe_chip()
Dlpc32xx_i2c.c290 static int lpc32xx_i2c_probe_chip(struct udevice *bus, u32 chip_addr,
294 return __i2c_probe_chip(dev->base, chip_addr);
Dihs_i2c.c321 static int ihs_i2c_probe_chip(struct udevice *bus, u32 chip_addr, in ihs_i2c_probe_chip() argument
326 if (ihs_i2c_transfer(bus, chip_addr, buffer, 0, I2COP_READ, true)) in ihs_i2c_probe_chip()
Dtegra_i2c.c459 static int tegra_i2c_probe_chip(struct udevice *bus, uint chip_addr, in tegra_i2c_probe_chip() argument
467 rc = tegra_i2c_write_data(i2c_bus, chip_addr << 1, &reg, sizeof(reg), in tegra_i2c_probe_chip()
Ddavinci_i2c.c480 static int davinci_i2c_probe_chip(struct udevice *bus, uint chip_addr,
485 return _davinci_i2c_probe_chip(i2c_bus->regs, chip_addr);
Ddesignware_i2c.c519 static int designware_i2c_probe_chip(struct udevice *bus, uint chip_addr,
528 ret = __dw_i2c_read(i2c_base, chip_addr, 0, 1, (uchar *)&tmp, 1);
Dmvtwsi.c767 static int mvtwsi_i2c_probe_chip(struct udevice *bus, u32 chip_addr,
771 return __twsi_i2c_probe_chip(dev->base, chip_addr, dev->tick);
Domap24xx_i2c.c876 static int omap_i2c_probe_chip(struct udevice *bus, uint chip_addr,
881 return __omap24_i2c_probe(priv->regs, priv->waitdelay, chip_addr);
Dmxc_i2c.c869 static int mxc_i2c_probe_chip(struct udevice *bus, u32 chip_addr,
875 ret = i2c_init_transfer(i2c_bus, chip_addr, 0, 0);
/external/u-boot/include/
Di2c.h51 uint chip_addr; member
166 int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags,
278 int i2c_probe(uint8_t chip_addr);
286 int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer,
295 int i2c_write(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer,
384 int (*probe_chip)(struct udevice *bus, uint chip_addr, uint chip_flags);
497 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len,
513 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len,
/external/u-boot/drivers/video/bridge/
Danx6345.c77 return anx6345_write(dev, chip->chip_addr, reg_addr, value); in anx6345_write_r0()
85 return anx6345_read(dev, chip->chip_addr, reg_addr, value); in anx6345_read_r0()
93 return anx6345_write(dev, chip->chip_addr + 1, reg_addr, value); in anx6345_write_r1()
101 return anx6345_read(dev, chip->chip_addr + 1, reg_addr, value); in anx6345_read_r1()
206 static int anx6345_read_aux_i2c(struct udevice *dev, u8 chip_addr, in anx6345_read_aux_i2c() argument
217 chip_addr, &cur_offset, 1); in anx6345_read_aux_i2c()
224 chip_addr, buf + i, cur_cnt); in anx6345_read_aux_i2c()
Dps862x.c43 msg.addr = chip->chip_addr + addr_off; in ps8622_write()
/external/u-boot/drivers/misc/
Dcros_ec_i2c.c62 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_packet()
64 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_packet()
140 i2c_msg[0].addr = chip->chip_addr; in cros_ec_i2c_command()
177 i2c_msg[1].addr = chip->chip_addr; in cros_ec_i2c_command()
/external/u-boot/board/gdsys/a38x/
Ddt_helpers.c20 bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr) in dm_i2c_simple_probe() argument
24 return !dm_i2c_probe(bus, chip_addr, DM_I2C_CHIP_RD_ADDRESS | in dm_i2c_simple_probe()
Ddt_helpers.h11 bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr);
/external/u-boot/drivers/gpio/
Dpcf8575_gpio.c63 chip->chip_addr); in pcf8575_i2c_write_le16()
77 chip->chip_addr); in pcf8575_i2c_read_le16()
/external/u-boot/drivers/i2c/muxes/
Di2c-mux-uclass.c143 static int i2c_mux_bus_probe(struct udevice *dev, uint chip_addr, in i2c_mux_bus_probe() argument
157 ret = ops->probe_chip(priv->i2c_bus, chip_addr, chip_flags); in i2c_mux_bus_probe()
/external/u-boot/cmd/
Di2c.c170 static int i2c_get_cur_bus_chip(uint chip_addr, struct udevice **devp) in i2c_get_cur_bus_chip() argument
179 return i2c_get_chip(bus, chip_addr, 1, devp); in i2c_get_cur_bus_chip()
1702 chip->chip_addr, dev->name, chip->offset_len, in show_bus()