Home
last modified time | relevance | path

Searched refs:i2c_read (Results 1 – 25 of 129) sorted by relevance

123456

/openbmc/u-boot/board/toradex/colibri_imx6/
H A Dpf0100.c43 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_DEVICEID, 1, &devid, 1) < 0) { in pmic_init()
47 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_REVID, 1, &revid, 1) < 0) { in pmic_init()
62 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
79 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
96 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
110 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR1, 1, &val, 1) < 0) { in pmic_init()
117 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR2, 1, &val, 1) < 0) { in pmic_init()
124 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR3, 1, &val, 1) < 0) { in pmic_init()
/openbmc/u-boot/board/toradex/apalis_imx6/
H A Dpf0100.c44 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_DEVICEID, 1, &devid, 1) < 0) { in pmic_init()
48 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_REVID, 1, &revid, 1) < 0) { in pmic_init()
63 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
80 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
97 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
111 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR1, 1, &val, 1) < 0) { in pmic_init()
118 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR2, 1, &val, 1) < 0) { in pmic_init()
125 if (i2c_read(PFUZE100_I2C_ADDR, PFUZE100_FUSE_POR3, 1, &val, 1) < 0) { in pmic_init()
/openbmc/u-boot/board/freescale/p1010rdb/
H A Dp1010rdb.c179 i2c_read(I2C_PCA9557_ADDR2, 0, 1, &tmp, 1); in config_board_mux()
182 i2c_read(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
189 i2c_read(I2C_PCA9557_ADDR2, 0, 1, &tmp, 1); in config_board_mux()
192 i2c_read(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
200 i2c_read(I2C_PCA9557_ADDR2, 0, 1, &tmp, 1); in config_board_mux()
203 i2c_read(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
208 i2c_read(I2C_PCA9557_ADDR2, 0, 1, &tmp, 1); in config_board_mux()
211 i2c_read(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
216 i2c_read(I2C_PCA9557_ADDR2, 0, 1, &tmp, 1); in config_board_mux()
219 i2c_read(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
[all …]
/openbmc/u-boot/drivers/misc/
H A Dds4510.c63 return i2c_read(chip, offset, 1, buf, count); in ds4510_mem_read()
75 if (i2c_read(chip, DS4510_CFG, 1, &data, 1)) in ds4510_see_write()
93 if (i2c_read(chip, DS4510_RSTDELAY, 1, &data, 1)) in ds4510_rstdelay_write()
119 if (i2c_read(chip, DS4510_PULLUP, 1, &val, 1)) in ds4510_pullup_read()
134 if (i2c_read(chip, DS4510_IO0 - i, 1, &data, 1)) in ds4510_gpio_write()
159 if (i2c_read(chip, DS4510_IO0 - i, 1, &data, 1)) in ds4510_gpio_read()
176 if (i2c_read(chip, DS4510_IO_STATUS, 1, &val, 1)) in ds4510_gpio_read_val()
193 if (i2c_read(chip, DS4510_RSTDELAY, 1, &data, 1)) in ds4510_info()
197 if (i2c_read(chip, DS4510_CFG, 1, &data, 1)) in ds4510_info()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c190 .u.i2c_read.port_number = 0xf,
197 .u.i2c_read.read_i2c_device_id = 0x7f,
204 .u.i2c_read.num_transactions = 3,
205 .u.i2c_read.num_bytes_read = ARRAY_SIZE(data) * 3,
206 .u.i2c_read.transactions = {
299 #define IN in->u.i2c_read in sideband_msg_req_equal()
300 #define OUT out->u.i2c_read in sideband_msg_req_equal()
399 for (i = 0; i < out->u.i2c_read.num_transactions; i++) in drm_test_dp_mst_sideband_msg_req_decode()
400 kfree(out->u.i2c_read.transactions[i].bytes); in drm_test_dp_mst_sideband_msg_req_decode()
/openbmc/u-boot/board/keymile/km_arm/
H A Dfpga_config.c24 ret = i2c_read(BOCO_ADDR, ID_REG, 1, &id, 1); in check_boco2()
39 ret = i2c_read(BOCO_ADDR, reg, 1, &regval, 1); in boco_clear_bits()
62 ret = i2c_read(BOCO_ADDR, reg, 1, &regval, 1); in boco_set_bits()
94 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &regval, 1); in fpga_done()
173 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &spictrl, 1); in wait_for_fpga_config()
/openbmc/u-boot/drivers/rtc/
H A Dm41t11.c77 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
95 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_get()
160 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1); in rtc_reset()
164 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); in rtc_reset()
H A Dm41t62.c182 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_get()
192 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_set()
212 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T62_REG_ALARM_HOUR, 1, &val, 1); in rtc_reset()
/openbmc/u-boot/board/freescale/ls1088a/
H A Dls1088a.c398 i2c_read(I2C_RETIMER_ADDR, 1, 1, &reg, 1); in board_retimer_init()
406 i2c_read(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
423 i2c_read(I2C_RETIMER_ADDR, 0x2F, 1, &reg, 1); in board_retimer_init()
437 i2c_read(I2C_RETIMER_ADDR2, 1, 1, &reg, 1); in board_retimer_init()
445 i2c_read(I2C_RETIMER_ADDR2, 0, 1, &reg, 1); in board_retimer_init()
462 i2c_read(I2C_RETIMER_ADDR2, 0x2F, 1, &reg, 1); in board_retimer_init()
510 ret = i2c_read(I2C_SVDD_MONITOR_ADDR, in get_serdes_volt()
559 ret = i2c_read(CONFIG_SYS_I2C_FPGA_ADDR, in set_serdes_volt()
/openbmc/u-boot/arch/arm/mach-sunxi/
H A Dpmic_bus.c64 return i2c_read(AXP152_I2C_ADDR, reg, 1, data, 1); in pmic_bus_read()
66 return i2c_read(AXP209_I2C_ADDR, reg, 1, data, 1); in pmic_bus_read()
71 return i2c_read(AXP209_I2C_ADDR, reg, 1, data, 1); in pmic_bus_read()
/openbmc/u-boot/board/freescale/common/
H A Dzm7300.c91 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 2); in dpm_rrp()
108 i2c_read(I2C_DPM_ADDR, 0, -3, ret, 1); in dpm_wrm()
130 i2c_read(I2C_DPM_ADDR, 0, -7, ret, 1); in dpm_wrp()
H A Dvid.c67 ret = i2c_read(i2caddress, in find_ir_chip_on_i2c()
107 ret = i2c_read(I2C_VOL_MONITOR_ADDR, in read_voltage_from_INA220()
140 ret = i2c_read(i2caddress, in read_voltage_from_IR()
190 ret = i2c_read(I2C_VOL_MONITOR_ADDR, in read_voltage_from_LTC()
518 ret = i2c_read(i2caddress, in adjust_vdd()
690 ret = i2c_read(i2caddress, in adjust_vdd()
/openbmc/u-boot/board/freescale/t102xqds/
H A Dt102xqds.c202 i2c_read(I2C_RETIMER_ADDR, 1, 1, &reg, 1); in board_retimer_ds125df111_init()
210 i2c_read(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_ds125df111_init()
215 i2c_read(I2C_RETIMER_ADDR, 9, 1, &reg, 1); in board_retimer_ds125df111_init()
220 i2c_read(I2C_RETIMER_ADDR, 0x18, 1, &reg, 1); in board_retimer_ds125df111_init()
225 i2c_read(I2C_RETIMER_ADDR, 0x1e, 1, &reg, 1); in board_retimer_ds125df111_init()
/openbmc/u-boot/include/
H A D_exports.h46 EXPORT_FUNC(i2c_read, int, i2c_read, uchar, uint, int , uchar * , int)
49 EXPORT_FUNC(dummy, void, i2c_read, void)
/openbmc/u-boot/board/freescale/mpc8349itx/
H A Dmpc8349itx.c284 if (i2c_read(CONFIG_SYS_I2C_8574A_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0) in misc_init_r()
286 else if (i2c_read(CONFIG_SYS_I2C_8574_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0) in misc_init_r()
296 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, 2, data, sizeof(data)) == 0) { in misc_init_r()
314 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, ds1339_data, sizeof(ds1339_data)) in misc_init_r()
H A Dpci.c74 if ((i2c_read(CONFIG_SYS_I2C_8574_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0) || in pci_init_board()
75 (i2c_read(CONFIG_SYS_I2C_8574A_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0)) { in pci_init_board()
/openbmc/u-boot/board/freescale/ls1043aqds/
H A Dls1043aqds.c324 i2c_read(I2C_RETIMER_ADDR, 1, 1, &reg, 1); in board_retimer_init()
332 i2c_read(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
337 i2c_read(I2C_RETIMER_ADDR, 9, 1, &reg, 1); in board_retimer_init()
342 i2c_read(I2C_RETIMER_ADDR, 0x18, 1, &reg, 1); in board_retimer_init()
347 i2c_read(I2C_RETIMER_ADDR, 0x1e, 1, &reg, 1); in board_retimer_init()
/openbmc/u-boot/board/freescale/ls1012ardb/
H A Dls1012ardb.c41 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_1, 1, &in1, 1) < 0) { in checkboard()
180 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_1, 1, &io, 1) < 0) { in esdhc_status_fixup()
203 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_0, 1, &io, 1) < 0) { in esdhc_status_fixup()
/openbmc/u-boot/drivers/gpio/
H A Dpca953x.c67 if (i2c_read(chip, addr, 1, &valb, 1)) in pca953x_reg_write()
75 if (i2c_read(chip, addr << 1, 1, (u8*)&valw, 2)) in pca953x_reg_write()
93 if (i2c_read(chip, addr, 1, &valb, 1)) in pca953x_reg_read()
97 if (i2c_read(chip, addr << 1, 1, (u8*)&valw, 2)) in pca953x_reg_read()
/openbmc/u-boot/board/advantech/dms-ba16/
H A Ddms-ba16.c555 i2c_read(DA9063_ADDR, BCORE2_CONF, 1, &val, 1); in pmic_init()
560 i2c_read(DA9063_ADDR, BCORE1_CONF, 1, &val, 1); in pmic_init()
565 i2c_read(DA9063_ADDR, BPRO_CONF, 1, &val, 1); in pmic_init()
570 i2c_read(DA9063_ADDR, BIO_CONF, 1, &val, 1); in pmic_init()
575 i2c_read(DA9063_ADDR, BMEM_CONF, 1, &val, 1); in pmic_init()
580 i2c_read(DA9063_ADDR, BPERI_CONF, 1, &val, 1); in pmic_init()
/openbmc/u-boot/board/sbc8548/
H A Dddr.c69 ret = i2c_read(ALT_SPD_EEPROM_ADDRESS, 0, 1, (uchar *)spd, in get_spd()
76 ret = i2c_read(i2c_address, 0, 1, (uchar *)spd, in get_spd()
/openbmc/u-boot/board/LaCie/common/
H A Dcommon.c81 ret = i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, in lacie_read_mac_address()
97 ret = i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 2, in lacie_read_mac_address()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/spear/
H A Dspr_misc.c146 i2c_read(CONFIG_I2C_CHIPADDRESS, MAGIC_OFF, 1, buf, MAGIC_LEN); in i2c_read_mac()
151 i2c_read(CONFIG_I2C_CHIPADDRESS, MAC_OFF, 1, buffer, MAC_LEN); in i2c_read_mac()
169 i2c_read(CONFIG_I2C_CHIPADDRESS, MAGIC_OFF, 1, buf, MAGIC_LEN); in write_mac()
/openbmc/u-boot/board/siemens/pxm2/
H A Dboard.c102 if (i2c_read(PMIC_CTRL_I2C_ADDR, reg_offset, 1, buf, 1)) in voltage_update()
111 if (i2c_read(PMIC_CTRL_I2C_ADDR, reg_offset, 1, buf, 1)) in voltage_update()
120 if (i2c_read(PMIC_CTRL_I2C_ADDR, reg_offset, 1, buf, 1)) in voltage_update()
146 if (i2c_read(PMIC_CTRL_I2C_ADDR, PMIC_DEVCTRL_REG, 1, buf, 1)) in spl_siemens_board_init()
/openbmc/u-boot/board/ti/common/
H A Dboard_detect.c50 return i2c_read(dev_addr, offset, 2, ep, epsize); in ti_i2c_eeprom_read()
142 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
148 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
155 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, in ti_i2c_eeprom_get()
164 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()

123456