/u-boot/board/freescale/common/ |
H A D | emc2305.c | 17 void set_fan_speed(u8 data, int chip_addr) argument 28 if (i2c_write(chip_addr, Fan[index], 1, &data, 1) != 0) { 35 if (i2c_get_chip_for_busnum(0, chip_addr, 1, &dev)) 46 void emc2305_init(int chip_addr) argument 52 if (i2c_write(chip_addr, I2C_EMC2305_CONF, 1, &data, 1) != 0) 57 if (!i2c_get_chip_for_busnum(0, chip_addr, 1, &dev))
|
H A D | emc2305.h | 19 void emc2305_init(int chip_addr); 20 void set_fan_speed(u8 data, int chip_addr);
|
/u-boot/board/gdsys/a38x/ |
H A D | dt_helpers.h | 11 bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr);
|
H A D | dt_helpers.c | 20 bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr) argument 24 return !dm_i2c_probe(bus, chip_addr, DM_I2C_CHIP_RD_ADDRESS |
|
/u-boot/drivers/net/ |
H A D | mdio_mux_i2creg.c | 53 u32 chip_addr; local 74 err = ofnode_read_u32(chip_node, "reg", &chip_addr); 81 err = i2c_get_chip(i2c_bus, (uint)chip_addr, 1, &priv->chip); 84 chip_addr);
|
/u-boot/drivers/i2c/ |
H A D | i2c-uclass.c | 64 msg->addr = chip->chip_addr; 263 * @chip_addr: Chip address to probe 268 static int i2c_probe_chip(struct udevice *bus, uint chip_addr, argument 276 ret = ops->probe_chip(bus, chip_addr, chip_flags); 285 msg->addr = chip_addr; 293 static int i2c_bind_driver(struct udevice *bus, uint chip_addr, uint offset_len, argument 301 snprintf(name, sizeof(name), "generic_%x", chip_addr); 312 chip->chip_addr = chip_addr; 333 int i2c_get_chip(struct udevice *bus, uint chip_addr, uin argument 359 i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len, struct udevice **devp) argument 466 dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags, struct udevice **devp) argument [all...] |
H A D | fsl_i2c.c | 409 static int __i2c_read(const struct fsl_i2c_base *base, u8 chip_addr, u8 *offset, argument 425 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0) 431 if (dlen && i2c_write_addr(base, chip_addr, 436 i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && 440 if (dlen && i2c_write_addr(base, chip_addr, I2C_READ_BIT, 456 static int __i2c_write(const struct fsl_i2c_base *base, u8 chip_addr, argument 464 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && 513 static int fsl_i2c_read(struct i2c_adapter *adap, u8 chip_addr, uint offset, argument 518 return __i2c_read(i2c_base[adap->hwadapnr], chip_addr, &o[4 - olen], 522 static int fsl_i2c_write(struct i2c_adapter *adap, u8 chip_addr, uin argument [all...] |
H A D | nx_i2c.c | 361 uchar chip_addr, 380 writel(chip_addr, &i2c->iicds); 428 writel(chip_addr, &i2c->iicds); 472 static int nx_i2c_read(struct udevice *dev, uchar chip_addr, uint addr, argument 498 ret = i2c_transfer(i2c->regs, I2C_READ, chip_addr << 1, 509 static int nx_i2c_write(struct udevice *dev, uchar chip_addr, uint addr, argument 532 ret = i2c_transfer(i2c->regs, I2C_WRITE, chip_addr << 1, 579 static int nx_i2c_probe_chip(struct udevice *dev, u32 chip_addr, argument 598 ret = i2c_transfer(bus->regs, I2C_WRITE, (uchar)chip_addr << 1, 359 i2c_transfer(struct nx_i2c_regs *i2c, uchar cmd_type, uchar chip_addr, uchar addr[], uchar addr_len, uchar data[], unsigned short data_len, uint seq) argument
|
H A D | sun8i_rsb.c | 225 static int sun8i_rsb_probe_chip(struct udevice *bus, uint chip_addr, argument 228 int runtime_addr = sun8i_rsb_get_runtime_address(chip_addr); 234 return sun8i_rsb_set_device_address(priv->base, chip_addr, runtime_addr); 264 return sun8i_rsb_probe_chip(bus, chip->chip_addr, 0);
|
H A D | ast2600_i2c.c | 25 static int ast2600_i2c_read_data(struct ast2600_i2c_priv *priv, u8 chip_addr, argument 32 cmd = I2CM_PKT_EN | I2CM_PKT_ADDR(chip_addr) | 63 static int ast2600_i2c_write_data(struct ast2600_i2c_priv *priv, u8 chip_addr, argument 70 cmd = I2CM_PKT_EN | I2CM_PKT_ADDR(chip_addr) | 86 cmd = I2CM_PKT_EN | I2CM_PKT_ADDR(chip_addr);
|
H A D | ast_i2c.c | 200 static int ast_i2c_read_data(struct udevice *dev, u8 chip_addr, u8 *buffer, argument 207 ret = ast_i2c_start_txn(dev, (chip_addr << 1) | I2C_M_RD); 229 static int ast_i2c_write_data(struct udevice *dev, u8 chip_addr, u8 argument 235 ret = ast_i2c_start_txn(dev, (chip_addr << 1));
|
H A D | sun6i_p2wi.c | 172 static int sun6i_p2wi_probe_chip(struct udevice *bus, uint chip_addr, argument 177 return sun6i_p2wi_change_to_p2wi_mode(priv->base, chip_addr, 211 return sun6i_p2wi_probe_chip(bus, chip->chip_addr, 0);
|
H A D | ihs_i2c.c | 218 static int ihs_i2c_probe_chip(struct udevice *bus, u32 chip_addr, argument 224 res = ihs_i2c_transfer(bus, chip_addr, buffer, 0, I2COP_READ, true);
|
H A D | intel_i2c.c | 234 static int intel_i2c_probe_chip(struct udevice *bus, uint chip_addr, argument 240 return smbus_block_read(i2c->base, chip_addr, buf, 0, 1);
|
/u-boot/board/freescale/ls1012ardb/ |
H A D | ls1012ardb.c | 267 u8 data = 0xf4, chip_addr = 0x24, offset_addr = 0x03; local 273 ret = i2c_get_chip_for_busnum(bus_num, chip_addr, 318 ret = i2c_write(chip_addr, offset_addr, 1, &data, 1); 323 chip_addr, offset_addr, data); 332 u8 chip_addr = 0x24; local 338 ret = i2c_get_chip_for_busnum(bus_num, chip_addr, 361 ret = i2c_write(chip_addr, offset_addr[i], 1, &data[i], 1); 365 chip_addr, offset_addr[i], data[i]);
|
/u-boot/drivers/misc/ |
H A D | cros_ec_i2c.c | 63 i2c_msg[0].addr = chip->chip_addr; 65 i2c_msg[1].addr = chip->chip_addr; 141 i2c_msg[0].addr = chip->chip_addr; 178 i2c_msg[1].addr = chip->chip_addr;
|
/u-boot/drivers/gpio/ |
H A D | pcf8575_gpio.c | 57 chip->chip_addr); 71 chip->chip_addr);
|
H A D | max7320_gpio.c | 40 chip->chip_addr);
|
/u-boot/drivers/video/bridge/ |
H A D | anx6345.c | 79 return anx6345_write(dev, chip->chip_addr, reg_addr, value); 87 return anx6345_read(dev, chip->chip_addr, reg_addr, value); 95 return anx6345_write(dev, chip->chip_addr + 1, reg_addr, value); 103 return anx6345_read(dev, chip->chip_addr + 1, reg_addr, value); 208 static int anx6345_read_aux_i2c(struct udevice *dev, u8 chip_addr, argument 219 chip_addr, &cur_offset, 1); 226 chip_addr, buf + i, cur_cnt);
|
H A D | ps862x.c | 46 msg.addr = chip->chip_addr + addr_off;
|
/u-boot/include/ |
H A D | i2c.h | 77 * @chip_addr: Chip address on bus 82 * @chip_addr_offset_mask: Mask of offset bits within chip_addr. Used for 100 uint chip_addr; member in struct:dm_i2c_chip 214 * @chip_addr: 7-bit address to probe (10-bit and others are not supported) 219 int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags, 403 * @chip_addr: Chip address to probe 408 int (*probe_chip)(struct udevice *bus, uint chip_addr, uint chip_flags); 516 * @chip_addr: Chip address for the new device 521 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len, 532 * @chip_addr [all...] |
H A D | rtc.h | 221 int rtc_enable_32khz_output(int busnum, int chip_addr);
|
/u-boot/board/traverse/common/ |
H A D | ten64_controller.c | 112 command_message.addr = chip->chip_addr; 123 return_message.addr = chip->chip_addr;
|
/u-boot/drivers/power/pmic/ |
H A D | palmas.c | 106 u32 chip2_addr = chip->chip_addr + 1;
|
/u-boot/drivers/rtc/ |
H A D | ds3231.c | 258 int rtc_enable_32khz_output(int busnum, int chip_addr) argument 263 ret = i2c_get_chip_for_busnum(busnum, chip_addr, 1, &dev);
|