Home
last modified time | relevance | path

Searched refs:i2c_read (Results 26 – 50 of 129) sorted by relevance

123456

/openbmc/u-boot/drivers/tpm/
H A Dtpm_atmel_twi.c95 while ((res = i2c_read(0x29, 0, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
119 res = i2c_read(0x29, 0, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
/openbmc/u-boot/board/esd/vme8349/
H A Dpci.c62 if ((i2c_read(CONFIG_SYS_I2C_8574_ADDR2, 0, 0, &reg8, 1) == 0) || in pci_init_board()
63 (i2c_read(0x38 , 0, 0, &reg8, 1) == 0)) { in pci_init_board()
/openbmc/u-boot/board/freescale/common/
H A Dvsc3316_3308.c48 ret = i2c_read(vsc_addr, REVISION_ID_REG, 1, &rev_id, 1); in vsc3316_config()
110 ret = i2c_read(vsc_addr, REVISION_ID_REG, 1, &rev_id, 1); in vsc3308_config_adjust()
212 ret = i2c_read(vsc_addr, REVISION_ID_REG, 1, &rev_id, 1); in vsc3308_config()
H A Didt8t49n222a_serdes_clk.c16 ret = i2c_read(idt_addr, 0x17, 1, &val, 1); in check_pll_status()
43 ret = i2c_read(idt_addr, DEVICE_ID_REG, 1, &dev_id, 1); in set_serdes_refclk()
H A Ddcu_sii9022a.c74 i2c_read(CONFIG_SYS_I2C_DVI_ADDR, TPI_PWR_STAT_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
85 i2c_read(CONFIG_SYS_I2C_DVI_ADDR, TPI_RW_ACCESS_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
/openbmc/u-boot/drivers/power/pmic/
H A Dpmic_tps65217.c22 return i2c_read(TPS65217_CHIP_PM, src_reg, 1, src_val, 1); in tps65217_reg_read()
56 ret = i2c_read(TPS65217_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65217_reg_write()
H A Dpmic_tps65218.c19 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_read()
55 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_write()
/openbmc/u-boot/board/lego/ev3/
H A Dlegoev3.c81 if (i2c_read(EEPROM_I2C_ADDR, EEPROM_REV_OFFSET, 2, buf, 2)) { in get_board_rev()
113 if (i2c_read(EEPROM_I2C_ADDR, offset, 2, buf, 6)) { in get_board_serial()
/openbmc/u-boot/board/ti/beagle/
H A Dbeagle.c224 i2c_read(EXPANSION_EEPROM_I2C_ADDRESS, 0, 1, (u8 *)&expansion_config, in get_expansion_id()
231 i2c_read(EXPANSION_EEPROM_I2C_ADDRESS, 0, 2, (u8 *)&expansion_config, in get_expansion_id()
283 i2c_read(TWL4030_CHIP_GPIO, GPIODATADIR1, 1, &val, 1); in beagle_dvi_pup()
287 i2c_read(TWL4030_CHIP_GPIO, GPIODATAOUT1, 1, &val, 1); in beagle_dvi_pup()
/openbmc/u-boot/board/varisys/common/
H A Dsys_eeprom.c149 ret = i2c_read(eeprom_addr, 0, eeprom_addr_len, in read_eeprom()
154 i2c_read(0x5f, 0x80, 1, uid, 16); in read_eeprom()
221 ret = i2c_read(eeprom_addr, 0, in prog_eeprom()
389 ret = i2c_read(chip, address, 1, mac, 6); in mac_read_from_generic_eeprom()
/openbmc/u-boot/board/Arcturus/ucp1020/
H A Ducp1020.c199 if (i2c_read(CONFIG_SYS_I2C_IDT6V49205B, 7, 1, &id1[0], 2) < 0) { in last_stage_init()
203 i2c_read(CONFIG_SYS_I2C_IDT6V49205B, 4, 1, &id1[0], 2); in last_stage_init()
211 if (i2c_read(CONFIG_SYS_I2C_NCT72_ADDR, 0xFE, 1, &id2, 1) < 0) in last_stage_init()
/openbmc/u-boot/include/
H A Di2c.h286 int i2c_read(uint8_t chip_addr, unsigned int addr, int alen, uint8_t *buffer,
760 int i2c_read(uint8_t chip, unsigned int addr, int alen,
813 int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len);
827 i2c_read(addr, reg, 1, &buf, 1); in i2c_reg_read()
/openbmc/linux/drivers/media/usb/gspca/
H A Dzc3xx.c5773 | (i2c_read(gspca_dev, 0x26) << 1) in getexposure()
5776 return i2c_read(gspca_dev, 0x10); in getexposure()
6068 retword = i2c_read(gspca_dev, 0x01); in vga_2wr_probe()
6074 retword = i2c_read(gspca_dev, 0x01); in vga_2wr_probe()
6081 retword = i2c_read(gspca_dev, 0x11); in vga_2wr_probe()
6091 retword = i2c_read(gspca_dev, 0x15); in vga_2wr_probe()
6097 retword = i2c_read(gspca_dev, 0x07); in vga_2wr_probe()
6100 retword = i2c_read(gspca_dev, 0x03); in vga_2wr_probe()
6103 retword = i2c_read(gspca_dev, 0x04); in vga_2wr_probe()
6109 retword = i2c_read(gspca_dev, 0x01); in vga_2wr_probe()
[all …]
/openbmc/u-boot/drivers/power/mfd/
H A Dfg_max77693.c21 ret = i2c_read(MAX77693_FUEL_I2C_ADDR, MAX77693_VCELL, 1, in max77693_get_vcell()
37 ret = i2c_read(MAX77693_FUEL_I2C_ADDR, MAX77693_VFSOC, 1, in max77693_get_soc()
/openbmc/u-boot/drivers/misc/
H A Dpca9551_led.c55 ret = i2c_read(CONFIG_PCA9551_I2C_ADDR, reg, 1, &buf, 1); in pca9551_led_get_state()
80 ret = i2c_read(CONFIG_PCA9551_I2C_ADDR, reg, 1, &buf, 1); in pca9551_led_set_state()
H A Dmc9sdz60.c23 if (i2c_read(CONFIG_SYS_FSL_MC9SDZ60_I2C_ADDR, reg, 1, &val, 1)) { in mc9sdz60_reg_read()
/openbmc/u-boot/board/ge/bx50v3/
H A Dbx50v3.c736 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BCORE2_CFG, 1, &val, 1); in pmic_init()
741 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BCORE1_CFG, 1, &val, 1); in pmic_init()
746 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BPRO_CFG, 1, &val, 1); in pmic_init()
751 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BIO_CFG, 1, &val, 1); in pmic_init()
756 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BMEM_CFG, 1, &val, 1); in pmic_init()
761 i2c_read(DA9063_I2C_ADDR, DA9063_REG_BPERI_CFG, 1, &val, 1); in pmic_init()
/openbmc/u-boot/board/siemens/draco/
H A Dboard.c135 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0x80, 2, in draco_read_nand_geometry()
165 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_ADDR_DDR3, 2, in read_eeprom()
171 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_ADDR_CHIP, 2, in read_eeprom()
/openbmc/u-boot/board/siemens/common/
H A Dfactoryset.c154 if (i2c_read(i2c_addr, EEPROM_FATORYSET_OFFSET, 2, hdr, sizeof(hdr))) in factoryset_read_eeprom()
177 if (i2c_read(i2c_addr, (OFF_PG + i) * EEPR_PG_SZ, 2, in factoryset_read_eeprom()
182 if (i2c_read(i2c_addr, (OFF_PG + pages) * EEPR_PG_SZ, 2, in factoryset_read_eeprom()
/openbmc/u-boot/drivers/rtc/
H A Drx8025.c84 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16)) in rtc_get()
170 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16)) in rtc_reset()
H A Drs5c372.c66 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, len); in rs5c372_readram()
207 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 1); in rtc_set()
/openbmc/u-boot/board/keymile/km_arm/
H A Dkm_arm.c134 if (i2c_read(BOCO, REG_IRQ_CIRQ2, 1, &buf, 1) != 0) in startup_allowed()
158 if (i2c_read(BOCO, REG_CTRL_H, 1, &buf, 1) != 0) { in ethernet_present()
177 if (i2c_read(BOCO, REG_CTRL_H, 1, &buf, 1) != 0) { in initialize_unit_leds()
/openbmc/u-boot/board/xes/xpedite520x/
H A Dddr.c14 i2c_read(i2c_address, 0, 1, (uchar *)spd, sizeof(ddr2_spd_eeprom_t)); in get_spd()
/openbmc/u-boot/drivers/bootcount/
H A Dbootcount_i2c.c31 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_load()
/openbmc/linux/drivers/gpu/drm/msm/dp/
H A Ddp_aux.c171 bool i2c_read = input_msg->request & in dp_aux_update_offset_and_segment() local
175 if (aux->native || i2c_read || ((input_msg->address != edid_address) && in dp_aux_update_offset_and_segment()
208 bool i2c_read = input_msg->request & in dp_aux_transfer_helper() local
211 if (!i2c_mot || !i2c_read || (input_msg->size == 0)) in dp_aux_transfer_helper()

123456