Home
last modified time | relevance | path

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

12345

/external/u-boot/board/toradex/colibri_imx6/
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()
/external/u-boot/board/freescale/p1010rdb/
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 …]
/external/u-boot/board/toradex/apalis_imx6/
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()
/external/u-boot/drivers/misc/
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()
/external/autotest/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/
Dit6803.py128 high = util.i2c_read(0, I2C_CEC, REG_MSCOUNT_H, 1)[0] * 0x10000
129 mid = util.i2c_read(0, I2C_CEC, REG_MSCOUNT_M, 1)[0] * 0x100
130 low = util.i2c_read(0, I2C_CEC, REG_MSCOUNT_L, 1)[0]
140 uc = util.i2c_read(0, I2C_CEC, REG09, 1)[0]
148 reg07_val = util.i2c_read(0, I2C_CEC, REG07, 1)[0]
202 return util.i2c_read(0, I2C_CEC, offset, 1)[0]
243 data = util.i2c_read(0, I2C_CEC, 0x30, 19)
/external/u-boot/drivers/power/pmic/
Dpmic_tps65910.c22 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, TPS65910_DEVCTRL_REG, 1, in tps65910_set_i2c_control()
52 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
63 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
74 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
Dpmic_tps65217.c19 return i2c_read(TPS65217_CHIP_PM, src_reg, 1, src_val, 1); in tps65217_reg_read()
49 ret = i2c_read(TPS65217_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65217_reg_write()
/external/u-boot/board/keymile/km_arm/
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()
/external/u-boot/board/freescale/ls1088a/
Dls1088a.c254 i2c_read(I2C_RETIMER_ADDR, 1, 1, &reg, 1); in board_retimer_init()
262 i2c_read(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
279 i2c_read(I2C_RETIMER_ADDR, 0x2F, 1, &reg, 1); in board_retimer_init()
293 i2c_read(I2C_RETIMER_ADDR2, 1, 1, &reg, 1); in board_retimer_init()
301 i2c_read(I2C_RETIMER_ADDR2, 0, 1, &reg, 1); in board_retimer_init()
318 i2c_read(I2C_RETIMER_ADDR2, 0x2F, 1, &reg, 1); in board_retimer_init()
366 ret = i2c_read(I2C_SVDD_MONITOR_ADDR, in get_serdes_volt()
415 ret = i2c_read(CONFIG_SYS_I2C_FPGA_ADDR, in set_serdes_volt()
/external/u-boot/board/freescale/ls1043aqds/
Dls1043aqds.c185 i2c_read(I2C_RETIMER_ADDR, 1, 1, &reg, 1); in board_retimer_init()
193 i2c_read(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
198 i2c_read(I2C_RETIMER_ADDR, 9, 1, &reg, 1); in board_retimer_init()
203 i2c_read(I2C_RETIMER_ADDR, 0x18, 1, &reg, 1); in board_retimer_init()
208 i2c_read(I2C_RETIMER_ADDR, 0x1e, 1, &reg, 1); in board_retimer_init()
/external/u-boot/drivers/rtc/
Drv3029.c45 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CLOCK_PAGE, 1, buf, \ in rtc_get()
113 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL1, 1, in set_eere_bit()
132 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL_STATUS, in wait_eebusy()
159 (void)i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_EEPROM_CTRL, in rtc_reset()
Dm41t11.c79 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_get()
97 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_get()
162 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1); in rtc_reset()
166 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); in rtc_reset()
Dm41t62.c58 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_get()
94 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE); in rtc_set()
129 i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T62_REG_ALARM_HOUR, 1, &val, 1); in rtc_reset()
/external/u-boot/board/freescale/t102xqds/
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()
/external/u-boot/board/freescale/ls1012ardb/
Dls1012ardb.c38 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_1, 1, &in1, 1) < 0) { in checkboard()
163 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_1, 1, &io, 1) < 0) { in esdhc_status_fixup()
186 if (i2c_read(I2C_MUX_IO_ADDR, I2C_MUX_IO_0, 1, &io, 1) < 0) { in esdhc_status_fixup()
/external/u-boot/arch/arm/mach-sunxi/
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()
/external/u-boot/board/freescale/common/
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()
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()
478 ret = i2c_read(i2caddress, in adjust_vdd()
650 ret = i2c_read(i2caddress, in adjust_vdd()
/external/u-boot/board/freescale/mpc8349itx/
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()
/external/u-boot/include/
D_exports.h46 EXPORT_FUNC(i2c_read, int, i2c_read, uchar, uint, int , uchar * , int)
49 EXPORT_FUNC(dummy, void, i2c_read, void)
/external/u-boot/drivers/gpio/
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()
/external/u-boot/board/advantech/dms-ba16/
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()
/external/u-boot/board/ti/common/
Dboard_detect.c95 return i2c_read(dev_addr, offset, alen, 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()
159 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, in ti_i2c_eeprom_get()
168 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
/external/u-boot/board/siemens/pxm2/
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()
/external/u-boot/arch/arm/cpu/arm926ejs/spear/
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()

12345