/u-boot/test/dm/ |
A D | i2c.c | 51 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_read_write() 54 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_read_write() 72 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_speed() 75 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_speed() 91 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_offset_len() 123 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_bytewise() 132 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_bytewise() 137 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_bytewise() 143 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_bytewise() 148 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_bytewise() [all …]
|
/u-boot/board/toradex/apalis_imx6/ |
A D | pf0100.c | 51 if (dm_i2c_read(dev, PFUZE100_INTSTAT3, &val, 1) < 0) { in pmic_init() 60 if (dm_i2c_read(dev, PFUZE100_OTP_ECC_SE1, &val, 1) < 0) { in pmic_init() 69 if (dm_i2c_read(dev, PFUZE100_OTP_ECC_SE2, &val, 1) < 0) { in pmic_init() 99 if (dm_i2c_read(dev, PFUZE100_DEVICEID, &devid, 1) < 0) { in pmic_init() 103 if (dm_i2c_read(dev, PFUZE100_REVID, &revid, 1) < 0) { in pmic_init() 115 if (dm_i2c_read(dev, PFUZE100_FUSE_POR1, &val, 1) < 0) { in pmic_init() 122 if (dm_i2c_read(dev, PFUZE100_FUSE_POR2, &val, 1) < 0) { in pmic_init() 129 if (dm_i2c_read(dev, PFUZE100_FUSE_POR3, &val, 1) < 0) { in pmic_init() 172 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() 188 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() [all …]
|
/u-boot/board/toradex/colibri_imx6/ |
A D | pf0100.c | 51 if (dm_i2c_read(dev, PFUZE100_INTSTAT3, &val, 1) < 0) { in pmic_init() 60 if (dm_i2c_read(dev, PFUZE100_OTP_ECC_SE1, &val, 1) < 0) { in pmic_init() 69 if (dm_i2c_read(dev, PFUZE100_OTP_ECC_SE2, &val, 1) < 0) { in pmic_init() 99 if (dm_i2c_read(dev, PFUZE100_DEVICEID, &devid, 1) < 0) { in pmic_init() 103 if (dm_i2c_read(dev, PFUZE100_REVID, &revid, 1) < 0) { in pmic_init() 115 if (dm_i2c_read(dev, PFUZE100_FUSE_POR1, &val, 1) < 0) { in pmic_init() 122 if (dm_i2c_read(dev, PFUZE100_FUSE_POR2, &val, 1) < 0) { in pmic_init() 129 if (dm_i2c_read(dev, PFUZE100_FUSE_POR3, &val, 1) < 0) { in pmic_init() 157 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() 173 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() [all …]
|
/u-boot/drivers/rtc/ |
A D | m41t62.c | 121 ret = dm_i2c_read(dev, 0, buf, sizeof(buf)); in m41t62_rtc_get() 135 ret = dm_i2c_read(dev, 0, buf, sizeof(buf)); in m41t62_rtc_set() 155 ret = dm_i2c_read(dev, M41T62_REG_ALARM_MON, &val, sizeof(val)); in m41t62_sqw_enable() 179 ret = dm_i2c_read(dev, M41T62_REG_WDAY, &val, sizeof(val)); in m41t62_sqw_set_rate() 204 ret = dm_i2c_read(dev, M41T62_REG_FLAGS, &val, sizeof(val)); in m41t62_rtc_restart_osc() 210 ret = dm_i2c_read(dev, M41T62_REG_SEC, &val, sizeof(val)); in m41t62_rtc_restart_osc() 229 ret = dm_i2c_read(dev, M41T62_REG_FLAGS, &val, sizeof(val)); in m41t62_rtc_restart_osc() 252 ret = dm_i2c_read(dev, M41T62_REG_ALARM_HOUR, &val, sizeof(val)); in m41t62_rtc_clear_ht()
|
A D | rv3029.c | 84 ret = dm_i2c_read(dev, RV3029_W_SEC, regs, sizeof(regs)); in rv3029_rtc_get() 168 ret = dm_i2c_read(dev, RV3029_RST_CTRL, &ctrl, 1); in rv3029_rtc_reset() 181 ret = dm_i2c_read(dev, reg, &data, sizeof(data)); in rv3029_rtc_read8() 195 int ret = dm_i2c_read(dev, RV3029_STATUS, buf, 1); in rv3029_get_sr() 208 ret = dm_i2c_read(dev, RV3029_STATUS, &val, 1); in rv3029_set_sr() 242 ret = dm_i2c_read(dev, reg, &buf, 1); in rv3029_update_bits() 250 ret = dm_i2c_read(dev, reg, &buf, 1); in rv3029_update_bits() 316 ret = dm_i2c_read(dev, reg, buf, len); in rv3029_eeprom_read() 337 ret = dm_i2c_read(dev, reg, &tmp, 1); in rv3029_eeprom_write()
|
A D | isl1208.c | 81 ret = dm_i2c_read(dev, 0, buf, sizeof(buf)); in isl1208_rtc_get() 87 ret = dm_i2c_read(dev, RTC_STAT_REG_ADDR, &val, sizeof(val)); in isl1208_rtc_get() 130 ret = dm_i2c_read(dev, RTC_STAT_REG_ADDR, &val, sizeof(val)); in isl1208_rtc_set() 153 ret = dm_i2c_read(dev, RTC_STAT_REG_ADDR, &val, sizeof(val)); in isl1208_rtc_set()
|
A D | rx8025.c | 106 if (dm_i2c_read(dev, 0, buf, sizeof(buf))) { 210 if (dm_i2c_read(dev, 0, buf, sizeof(buf))) { 258 return dm_i2c_read(dev, 0, buf, sizeof(buf));
|
/u-boot/board/freescale/p1010rdb/ |
A D | p1010rdb.c | 198 dm_i2c_read(dev, 0, &tmp, 1); in config_board_mux() 201 dm_i2c_read(dev, 3, &tmp, 1); in config_board_mux() 208 dm_i2c_read(dev, 0, &tmp, 1); in config_board_mux() 211 dm_i2c_read(dev, 3, &tmp, 1); in config_board_mux() 219 dm_i2c_read(dev, 0, &tmp, 1); in config_board_mux() 222 dm_i2c_read(dev, 3, &tmp, 1); in config_board_mux() 227 dm_i2c_read(dev, 0, &tmp, 1); in config_board_mux() 230 dm_i2c_read(dev, 3, &tmp, 1); in config_board_mux() 235 dm_i2c_read(dev, 0, &tmp, 1); in config_board_mux() 238 dm_i2c_read(dev, 3, &tmp, 1); in config_board_mux() [all …]
|
/u-boot/board/Marvell/mvebu_armada-8k/ |
A D | board.c | 78 ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1); in board_xhci_config() 92 ret = dm_i2c_read(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); in board_xhci_config() 133 ret = dm_i2c_read(dev, I2C_IO_DATA_OUT_REG_0, buf, 1); in board_xhci_enable()
|
/u-boot/board/BuR/common/ |
A D | br_resetc.c | 94 return dm_i2c_read(resetc.i2cdev, reg, dst, 1); in br_resetc_regget() 128 rc = dm_i2c_read(resetc.i2cdev, RSTCTRL_ENHSTATUS, ®b, 1); in br_resetc_bmode() 134 rc = dm_i2c_read(resetc.i2cdev, RSTCTRL_SCRATCHREG0, &scr, 1); in br_resetc_bmode()
|
/u-boot/board/k+p/kp_imx53/ |
A D | kp_id_rev.c | 83 ret = dm_i2c_read(dev, 0x0, (uchar *)&eeprom, sizeof(eeprom)); in read_eeprom() 102 dm_i2c_read(dev, 0x0, &rev_id, sizeof(rev_id)); in read_board_id()
|
/u-boot/drivers/tpm/ |
A D | tpm_atmel_twi.c | 98 while ((res = dm_i2c_read(dev, 0, recvbuf, 10))) in tpm_atmel_twi_xfer() 122 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
|
/u-boot/board/gateworks/venice/ |
A D | gsc.c | 178 ret = dm_i2c_read(dev, 0x00, buf, sizeof(*info)); in gsc_read_eeprom() 226 if (!dm_i2c_read(dev, GSC_SC_RST_CAUSE, ®, 1)) { in gsc_get_rst_cause() 234 if (!dm_i2c_read(dev, GSC_SC_THERM_PROTECT, ®, 1)) { in gsc_get_rst_cause() 276 ret = dm_i2c_read(dev, reg, buf, sizeof(buf)); in gsc_hwmon() 534 dm_i2c_read(dev, 0, buf, 6); in gsc_info() 560 ret = dm_i2c_read(dev, 0, buf, sizeof(buf)); in gsc_init() 616 ret = dm_i2c_read(dev, GSC_SC_CTRL1, ®, 1); in gsc_sleep() 647 ret = dm_i2c_read(dev, GSC_SC_CTRL1, ®, 1); in gsc_boot_wd_disable()
|
/u-boot/drivers/power/pmic/ |
A D | pmic_tps65217.c | 24 return dm_i2c_read(tps65217_dev, src_reg, src_val, 1); in tps65217_reg_read() 58 ret = dm_i2c_read(tps65217_dev, dest_reg, &read_val, 1); in tps65217_reg_write()
|
A D | max8997.c | 35 ret = dm_i2c_read(dev, reg, buff, len); in max8997_read()
|
A D | max8998.c | 35 ret = dm_i2c_read(dev, reg, buff, len); in max8998_read()
|
/u-boot/board/freescale/ls1043aqds/ |
A D | ls1043aqds.c | 367 dm_i2c_read(dev, 1, ®, 1); in board_retimer_init() 375 dm_i2c_read(dev, 0, ®, 1); in board_retimer_init() 380 dm_i2c_read(dev, 9, ®, 1); in board_retimer_init() 385 dm_i2c_read(dev, 0x18, ®, 1); in board_retimer_init() 390 dm_i2c_read(dev, 0x1e, ®, 1); in board_retimer_init()
|
/u-boot/board/freescale/ls1088a/ |
A D | ls1088a.c | 462 dm_i2c_read(dev, 1, ®, 1); in board_retimer_init() 478 dm_i2c_read(dev, 0, ®, 1); in board_retimer_init() 523 dm_i2c_read(dev, 0x2F, ®, 1); in board_retimer_init() 550 dm_i2c_read(dev, 1, ®, 1); in board_retimer_init() 566 dm_i2c_read(dev, 0, ®, 1); in board_retimer_init() 611 dm_i2c_read(dev, 0x2F, ®, 1); in board_retimer_init() 705 dm_i2c_read(dev, PMBUS_CMD_READ_VOUT, (void *)&vcode, 2); in get_serdes_volt() 771 ret = dm_i2c_read(dev, QIXIS_BRDCFG4_OFFSET, in set_serdes_volt()
|
/u-boot/board/freescale/ls1012ardb/ |
A D | ls1012ardb.c | 56 ret = dm_i2c_read(dev, I2C_MUX_IO_1, &in1, 1); in checkboard() 208 ret = dm_i2c_read(dev, I2C_MUX_IO_1, &io, 1); in esdhc_status_fixup() 238 ret = dm_i2c_read(dev, I2C_MUX_IO_0, &io, 1); in esdhc_status_fixup()
|
/u-boot/drivers/gpio/ |
A D | pca953x_gpio.c | 102 ret = dm_i2c_read(dev, (reg << bank_shift) + off, &byte, 1); in pca953x_read_single() 119 ret = dm_i2c_read(dev, reg, val, 1); in pca953x_read_regs() 121 ret = dm_i2c_read(dev, reg << 1, val, info->bank_count); in pca953x_read_regs() 124 ret = dm_i2c_read(dev, (reg << 2) | 0x80, val, in pca953x_read_regs() 128 ret = dm_i2c_read(dev, (reg << 3) | 0x80, val, in pca953x_read_regs()
|
/u-boot/board/congatec/conga-qeval20-qa3-e3845/ |
A D | conga-qeval20-qa3.c | 48 dm_i2c_read(dev, 0x00, buf, 1); in board_late_init()
|
/u-boot/board/nvidia/p2371-2180/ |
A D | p2371-2180.c | 40 ret = dm_i2c_read(dev, MAX77620_CNFG2_L4_REG, &val, 1); in pin_mux_mmc() 51 ret = dm_i2c_read(dev, MAX77620_CNFGGLBL1_REG, &val, 1); in pin_mux_mmc()
|
/u-boot/board/nvidia/p3450-0000/ |
A D | p3450-0000.c | 39 ret = dm_i2c_read(dev, MAX77620_CNFG2_L4_REG, &val, 1); in pin_mux_mmc() 50 ret = dm_i2c_read(dev, MAX77620_CNFGGLBL1_REG, &val, 1); in pin_mux_mmc()
|
/u-boot/board/xilinx/common/ |
A D | board.c | 42 ret = dm_i2c_read(dev, CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET, ethaddr, 6); in zynq_board_read_rom_ethaddr() 120 ret = dm_i2c_read(dev, 0, (uchar *)eeprom_content, size); in xilinx_read_eeprom_legacy() 183 ret = dm_i2c_read(dev, 0, (uchar *)fru_content, in xilinx_read_eeprom_fru() 259 ret = dm_i2c_read(dev, 0, buffer, sizeof(buffer)); in xilinx_read_eeprom_single()
|
/u-boot/drivers/sound/ |
A D | maxim_codec.c | 49 return dm_i2c_read(priv->dev, reg, data, 1); in maxim_i2c_read()
|