Home
last modified time | relevance | path

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

12

/external/u-boot/drivers/i2c/
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.c405 static int __i2c_read(const struct fsl_i2c_base *base, u8 chip_addr, u8 *offset, in __i2c_read() argument
421 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0) in __i2c_read()
427 if (dlen && i2c_write_addr(base, chip_addr, in __i2c_read()
432 i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && in __i2c_read()
436 if (dlen && i2c_write_addr(base, chip_addr, I2C_READ_BIT, in __i2c_read()
452 static int __i2c_write(const struct fsl_i2c_base *base, u8 chip_addr, in __i2c_write() argument
460 if (i2c_write_addr(base, chip_addr, I2C_WRITE_BIT, 0) != 0 && in __i2c_write()
509 static int fsl_i2c_read(struct i2c_adapter *adap, u8 chip_addr, uint offset, in fsl_i2c_read() argument
514 return __i2c_read(i2c_base[adap->hwadapnr], chip_addr, &o[4 - olen], in fsl_i2c_read()
518 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);
Dtegra186_bpmp_i2c.c88 static int tegra186_bpmp_probe_chip(struct udevice *bus, uint chip_addr, in tegra186_bpmp_probe_chip() argument
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()
Dihs_i2c.c325 static int ihs_i2c_probe_chip(struct udevice *bus, u32 chip_addr, in ihs_i2c_probe_chip() argument
331 res = ihs_i2c_transfer(bus, chip_addr, buffer, 0, I2COP_READ, true); in ihs_i2c_probe_chip()
/external/u-boot/drivers/net/
Dmdio_mux_i2creg.c52 u32 chip_addr; in mdio_mux_i2creg_probe() local
73 err = ofnode_read_u32(chip_node, "reg", &chip_addr); in mdio_mux_i2creg_probe()
80 err = i2c_get_chip(i2c_bus, (uint)chip_addr, 1, &priv->chip); in mdio_mux_i2creg_probe()
83 chip_addr); in mdio_mux_i2creg_probe()
/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/include/
Di2c.h51 uint chip_addr; member
168 int dm_i2c_probe(struct udevice *bus, uint chip_addr, uint chip_flags,
306 int (*probe_chip)(struct udevice *bus, uint chip_addr, uint chip_flags);
419 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len,
435 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len,
Drtc.h172 int rtc_enable_32khz_output(int busnum, int chip_addr);
/external/arm-trusted-firmware/drivers/arm/gic/v3/
Dgic600_multichip_private.h52 #define GICD_CHIPR_VALUE(chip_addr, spi_block_min, spi_blocks) \ argument
53 (((chip_addr) << GICD_CHIPRx_ADDR_SHIFT) | \
Dgic600_multichip.c71 uint64_t chip_addr, in set_gicd_chipr_n() argument
103 chipr_n_val = (GICD_CHIPR_VALUE(chip_addr, spi_block_min, spi_blocks)) | in set_gicd_chipr_n()
/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.c164 static int i2c_mux_bus_probe(struct udevice *dev, uint chip_addr, in i2c_mux_bus_probe() argument
178 ret = ops->probe_chip(priv->i2c_bus, chip_addr, chip_flags); in i2c_mux_bus_probe()
/external/u-boot/drivers/rtc/
Dds3231.c257 int rtc_enable_32khz_output(int busnum, int chip_addr) in rtc_enable_32khz_output() argument
262 ret = i2c_get_chip_for_busnum(busnum, chip_addr, 1, &dev); in rtc_enable_32khz_output()
Dpcf2127.c38 msg.addr = chip->chip_addr; in pcf2127_read_reg()
/external/u-boot/drivers/video/
Dtda19988.c536 u8 cec_addr, chip_addr, rev_lo, rev_hi; in tda19988_probe() local
540 chip_addr = dev_read_addr(dev); in tda19988_probe()
542 cec_addr = 0x34 + (chip_addr & 0x03); in tda19988_probe()
550 err = i2c_get_chip_for_busnum(0, chip_addr, 1, &priv->chip); in tda19988_probe()
/external/u-boot/board/st/stm32mp1/
Dstm32mp1.c183 u32 chip_addr; in stusb1600_init() local
192 ret = ofnode_read_u32(node, "reg", &chip_addr); in stusb1600_init()
203 ret = dm_i2c_probe(bus, chip_addr, 0, &dev); in stusb1600_init()
/external/u-boot/drivers/ddr/fsl/
Dmain.c116 static int ddr_i2c_dummy_write(unsigned int chip_addr) in ddr_i2c_dummy_write() argument
124 ret = i2c_get_chip_for_busnum(CONFIG_SYS_SPD_BUS_NUM, chip_addr, in ddr_i2c_dummy_write()
134 return i2c_write(chip_addr, 0, 1, &buf, 1); in ddr_i2c_dummy_write()

12