Home
last modified time | relevance | path

Searched refs:i2c_write (Results 1 – 25 of 100) sorted by relevance

1234

/external/u-boot/board/freescale/common/
Dpq-mds-pib.c29 i2c_write(0x23, 0x6, 1, &val8, 1); in pib_init()
30 i2c_write(0x23, 0x7, 1, &val8, 1); in pib_init()
32 i2c_write(0x23, 0x2, 1, &val8, 1); in pib_init()
33 i2c_write(0x23, 0x3, 1, &val8, 1); in pib_init()
36 i2c_write(0x26, 0x6, 1, &val8, 1); in pib_init()
38 i2c_write(0x26, 0x7, 1, &val8, 1); in pib_init()
44 i2c_write(0x26, 0x2, 1, &val8, 1); in pib_init()
46 i2c_write(0x26, 0x3, 1, &val8, 1); in pib_init()
49 i2c_write(0x27, 0x6, 1, &val8, 1); in pib_init()
50 i2c_write(0x27, 0x7, 1, &val8, 1); in pib_init()
[all …]
Ddcu_sii9022a.c71 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_TRANS_MODE_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
77 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_PWR_STAT_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
81 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_SET_PAGE_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
83 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_SET_OFFSET_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
87 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_RW_ACCESS_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
91 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_SYS_CTRL_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
96 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, PIXEL_CLK_LSB_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
98 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, PIXEL_CLK_MSB_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
104 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TOTAL_PIXELS_LSB_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
106 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TOTAL_PIXELS_MSB_REG, 1, &temp, 1); in dcu_set_dvi_encoder()
[all …]
Ddiu_ch7301.c54 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_TEST_PATTERN_REG, 1, in diu_set_dvi_encoder()
61 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_INPUT_DATA_FORMAT_REG, in diu_set_dvi_encoder()
70 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_SYNC_POLARITY_REG, 1, in diu_set_dvi_encoder()
80 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
87 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
94 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
102 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
109 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
116 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, in diu_set_dvi_encoder()
125 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_POWER_MGMT_REG, 1, in diu_set_dvi_encoder()
/external/u-boot/board/freescale/ls1088a/
Dls1088a.c232 ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1); in select_i2c_ch_pca9547()
251 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_init()
259 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_init()
264 i2c_write(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
268 i2c_write(I2C_RETIMER_ADDR, 0x60, 1, &reg, 1); in board_retimer_init()
270 i2c_write(I2C_RETIMER_ADDR, 0x61, 1, &reg, 1); in board_retimer_init()
272 i2c_write(I2C_RETIMER_ADDR, 0x62, 1, &reg, 1); in board_retimer_init()
274 i2c_write(I2C_RETIMER_ADDR, 0x63, 1, &reg, 1); in board_retimer_init()
276 i2c_write(I2C_RETIMER_ADDR, 0x64, 1, &reg, 1); in board_retimer_init()
282 i2c_write(I2C_RETIMER_ADDR, 0x2F, 1, &reg, 1); in board_retimer_init()
[all …]
Deth_ls1088aqds.c100 i2c_write(0x77, 0, 0, &a, 1); in sgmii_configure_repeater()
149 i2c_write(i2c_phy_addr, 6, 1, &a, 1); in sgmii_configure_repeater()
151 i2c_write(i2c_phy_addr, 4, 1, &a, 1); in sgmii_configure_repeater()
153 i2c_write(i2c_phy_addr, 8, 1, &a, 1); in sgmii_configure_repeater()
155 i2c_write(i2c_phy_addr, 0xf, 1, in sgmii_configure_repeater()
157 i2c_write(i2c_phy_addr, 0x11, 1, in sgmii_configure_repeater()
160 i2c_write(i2c_phy_addr, 0x16, 1, in sgmii_configure_repeater()
162 i2c_write(i2c_phy_addr, 0x18, 1, in sgmii_configure_repeater()
166 i2c_write(i2c_phy_addr, 0x23, 1, &a, 1); in sgmii_configure_repeater()
168 i2c_write(i2c_phy_addr, 0x2d, 1, &a, 1); in sgmii_configure_repeater()
[all …]
/external/u-boot/board/freescale/mpc8349emds/
Dpci.c70 i2c_write(0x23, 0x6, 1, &val8, 1); in pib_init()
71 i2c_write(0x23, 0x7, 1, &val8, 1); in pib_init()
73 i2c_write(0x23, 0x2, 1, &val8, 1); in pib_init()
74 i2c_write(0x23, 0x3, 1, &val8, 1); in pib_init()
77 i2c_write(0x26, 0x6, 1, &val8, 1); in pib_init()
79 i2c_write(0x26, 0x7, 1, &val8, 1); in pib_init()
89 i2c_write(0x26, 0x2, 1, &val8, 1); in pib_init()
91 i2c_write(0x26, 0x3, 1, &val8, 1); in pib_init()
93 i2c_write(0x27, 0x6, 1, &val8, 1); in pib_init()
94 i2c_write(0x27, 0x7, 1, &val8, 1); in pib_init()
[all …]
/external/u-boot/board/freescale/mpc8568mds/
Dmpc8568mds.c262 i2c_write(0x23, 0x6, 1, &val8, 1); in pib_init()
263 i2c_write(0x23, 0x7, 1, &val8, 1); in pib_init()
265 i2c_write(0x23, 0x2, 1, &val8, 1); in pib_init()
266 i2c_write(0x23, 0x3, 1, &val8, 1); in pib_init()
269 i2c_write(0x26, 0x6, 1, &val8, 1); in pib_init()
271 i2c_write(0x26, 0x7, 1, &val8, 1); in pib_init()
273 i2c_write(0x26, 0x2, 1, &val8, 1); in pib_init()
275 i2c_write(0x26, 0x3, 1, &val8, 1); in pib_init()
278 i2c_write(0x27, 0x6, 1, &val8, 1); in pib_init()
279 i2c_write(0x27, 0x7, 1, &val8, 1); in pib_init()
[all …]
/external/u-boot/board/freescale/t102xqds/
Dt102xqds.c79 ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1); in select_i2c_ch_pca9547()
193 i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &reg, 1); in board_retimer_ds125df111_init()
195 i2c_write(I2C_MUX_PCA_ADDR_SEC, 0, 1, &reg, 1); in board_retimer_ds125df111_init()
199 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_ds125df111_init()
207 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_ds125df111_init()
212 i2c_write(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_ds125df111_init()
217 i2c_write(I2C_RETIMER_ADDR, 9, 1, &reg, 1); in board_retimer_ds125df111_init()
222 i2c_write(I2C_RETIMER_ADDR, 0x18, 1, &reg, 1); in board_retimer_ds125df111_init()
228 i2c_write(I2C_RETIMER_ADDR, 0x1e, 1, &reg, 1); in board_retimer_ds125df111_init()
232 i2c_write(I2C_RETIMER_ADDR, 0x60, 1, &reg, 1); in board_retimer_ds125df111_init()
[all …]
/external/u-boot/board/freescale/p1010rdb/
Dp1010rdb.c144 i2c_write(I2C_PCA9557_ADDR1, 3, 1, &tmp, 1); in config_board_mux()
146 i2c_write(I2C_PCA9557_ADDR1, 1, 1, &tmp, 1); in config_board_mux()
153 i2c_write(I2C_PCA9557_ADDR1, 3, 1, &tmp, 1); in config_board_mux()
155 i2c_write(I2C_PCA9557_ADDR1, 1, 1, &tmp, 1); in config_board_mux()
181 i2c_write(I2C_PCA9557_ADDR2, 1, 1, &tmp, 1); in config_board_mux()
184 i2c_write(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
191 i2c_write(I2C_PCA9557_ADDR2, 1, 1, &tmp, 1); in config_board_mux()
194 i2c_write(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
202 i2c_write(I2C_PCA9557_ADDR2, 1, 1, &tmp, 1); in config_board_mux()
205 i2c_write(I2C_PCA9557_ADDR2, 3, 1, &tmp, 1); in config_board_mux()
[all …]
/external/u-boot/board/freescale/ls1043aqds/
Dls1043aqds.c140 ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1); in select_i2c_ch_pca9547()
178 i2c_write(I2C_MUX_PCA_ADDR_SEC, 0, 1, &reg, 1); in board_retimer_init()
182 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_init()
190 i2c_write(I2C_RETIMER_ADDR, 0xff, 1, &reg, 1); in board_retimer_init()
195 i2c_write(I2C_RETIMER_ADDR, 0, 1, &reg, 1); in board_retimer_init()
200 i2c_write(I2C_RETIMER_ADDR, 9, 1, &reg, 1); in board_retimer_init()
205 i2c_write(I2C_RETIMER_ADDR, 0x18, 1, &reg, 1); in board_retimer_init()
211 i2c_write(I2C_RETIMER_ADDR, 0x1e, 1, &reg, 1); in board_retimer_init()
215 i2c_write(I2C_RETIMER_ADDR, 0x60, 1, &reg, 1); in board_retimer_init()
217 i2c_write(I2C_RETIMER_ADDR, 0x61, 1, &reg, 1); in board_retimer_init()
[all …]
/external/u-boot/board/freescale/ls2080aqds/
Deth.c110 i2c_write(0x77, 0, 0, &a, 1); in sgmii_configure_repeater()
123 i2c_write(0x76, 0, 0, &a, 1); in sgmii_configure_repeater()
157 i2c_write(i2c_addr[dpmac], 6, 1, &a, 1); in sgmii_configure_repeater()
159 i2c_write(i2c_addr[dpmac], 4, 1, &a, 1); in sgmii_configure_repeater()
161 i2c_write(i2c_addr[dpmac], 8, 1, &a, 1); in sgmii_configure_repeater()
163 i2c_write(i2c_addr[dpmac], 0xf, 1, in sgmii_configure_repeater()
165 i2c_write(i2c_addr[dpmac], 0x11, 1, in sgmii_configure_repeater()
168 i2c_write(i2c_addr[dpmac], 0x16, 1, in sgmii_configure_repeater()
170 i2c_write(i2c_addr[dpmac], 0x18, 1, in sgmii_configure_repeater()
174 i2c_write(i2c_addr[dpmac], 0x23, 1, &a, 1); in sgmii_configure_repeater()
[all …]
/external/u-boot/board/toradex/apalis_imx6/
Dpf0100.c71 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, in pmic_init()
88 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, in pmic_init()
107 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, &val, 1)) { in pmic_init()
148 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_VGEN1CTL, 1, in pmic_init()
156 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_SWBSTCTL, 1, in pmic_init()
190 if (i2c_write(PFUZE100_I2C_ADDR, pmic_otp_prog[i].reg, in pf0100_prog()
/external/u-boot/drivers/power/pmic/
Dpmic_tps65217.c59 ret = i2c_write(TPS65217_CHIP_PM, TPS65217_PASSWORD, 1, in tps65217_reg_write()
65 ret = i2c_write(TPS65217_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65217_reg_write()
70 ret = i2c_write(TPS65217_CHIP_PM, TPS65217_PASSWORD, 1, in tps65217_reg_write()
75 ret = i2c_write(TPS65217_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65217_reg_write()
Dpmic_tps65218.c64 ret = i2c_write(TPS65218_CHIP_PM, TPS65218_PASSWORD, 1, in tps65218_reg_write()
70 ret = i2c_write(TPS65218_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65218_reg_write()
75 ret = i2c_write(TPS65218_CHIP_PM, TPS65218_PASSWORD, 1, in tps65218_reg_write()
80 ret = i2c_write(TPS65218_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65218_reg_write()
Dpmic_tps65910.c30 return i2c_write(TPS65910_CTRL_I2C_ADDR, TPS65910_DEVCTRL_REG, 1, in tps65910_set_i2c_control()
58 ret = i2c_write(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
70 ret = i2c_write(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
/external/u-boot/drivers/rtc/
Dm41t11.c105 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_get()
150 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE); in rtc_set()
153 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT); in rtc_set()
164 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT); in rtc_reset()
168 i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1); in rtc_reset()
Drv3029.c100 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CLOCK_PAGE, 1, in rtc_set()
121 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL1, 1, in set_eere_bit()
147 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_RV3029_CTRL_RESET, 1, in rtc_reset()
176 (void)i2c_write(CONFIG_SYS_I2C_RTC_ADDR, in rtc_reset()
Dm41t60.c104 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) { in rtc_validate()
140 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_validate()
191 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) { in rtc_set()
234 if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CTRL, 1, data + RTC_CTRL, 1)) { in rtc_reset()
/external/u-boot/board/toradex/colibri_imx6/
Dpf0100.c70 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, in pmic_init()
87 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, in pmic_init()
106 if (i2c_write(PFUZE100_I2C_ADDR, PFUZE100_PAGE_REGISTER, 1, &val, 1)) { in pmic_init()
172 if (i2c_write(PFUZE100_I2C_ADDR, pmic_otp_prog[i].reg, in pf0100_prog()
/external/u-boot/arch/arm/mach-sunxi/
Dpmic_bus.c81 return i2c_write(AXP152_I2C_ADDR, reg, 1, &data, 1); in pmic_bus_write()
83 return i2c_write(AXP209_I2C_ADDR, reg, 1, &data, 1); in pmic_bus_write()
88 return i2c_write(AXP209_I2C_ADDR, reg, 1, &data, 1); in pmic_bus_write()
/external/u-boot/board/LaCie/net2big_v2/
Dnet2big_v2.c100 if (i2c_write(CONFIG_SYS_I2C_G762_ADDR, in init_fan()
104 if (i2c_write(CONFIG_SYS_I2C_G762_ADDR, in init_fan()
124 if (i2c_write(CONFIG_SYS_I2C_G762_ADDR, in init_fan()
/external/u-boot/include/
D_exports.h45 EXPORT_FUNC(i2c_write, int, i2c_write, uchar, uint, int , uchar * , int)
48 EXPORT_FUNC(dummy, void, i2c_write, void)
/external/u-boot/board/freescale/t102xrdb/
Dt102xrdb.c284 i2c_write(I2C_PCA6408_ADDR, 1, 1, &tmp, 1); in t1023rdb_ctrl()
286 i2c_write(I2C_PCA6408_ADDR, 3, 1, &tmp, 1); in t1023rdb_ctrl()
293 i2c_write(I2C_PCA6408_ADDR, 1, 1, &tmp, 1); in t1023rdb_ctrl()
295 i2c_write(I2C_PCA6408_ADDR, 3, 1, &tmp, 1); in t1023rdb_ctrl()
/external/u-boot/board/advantech/dms-ba16/
Ddms-ba16.c558 i2c_write(DA9063_ADDR, BCORE2_CONF , 1, &val, 1); in pmic_init()
563 i2c_write(DA9063_ADDR, BCORE1_CONF , 1, &val, 1); in pmic_init()
568 i2c_write(DA9063_ADDR, BPRO_CONF , 1, &val, 1); in pmic_init()
573 i2c_write(DA9063_ADDR, BIO_CONF , 1, &val, 1); in pmic_init()
578 i2c_write(DA9063_ADDR, BMEM_CONF , 1, &val, 1); in pmic_init()
583 i2c_write(DA9063_ADDR, BPERI_CONF , 1, &val, 1); in pmic_init()
/external/u-boot/board/freescale/ls1021aqds/
Ddcu.c22 ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1); in select_i2c_ch_pca9547()
61 ret = i2c_write(CONFIG_SYS_I2C_QIXIS_ADDR, QIXIS_DCU_BRDCFG5, in platform_dcu_init()

1234