Lines Matching refs:i2c
99 uint32_t i2c[ARRAY_SIZE(i2c_bus)]; member
103 .i2c = { I2C_CLK_CGR(1), I2C_CLK_CGR(2), I2C_CLK_CGR(3), I2C_CLK_CGR(4), },
116 } i2c[ARRAY_SIZE(i2c_bus)]; member
119 .i2c = {{ .scl_mux = I2C_MUX_SCL(1), .scl_cfg = I2C_CFG_SCL(1),
222 addr += CCM_CCGRx_SET(i2c_clk.i2c[bid]); in i2c_set_bus_speed()
225 addr += i2c_clk.i2c[bid]; in i2c_set_bus_speed()
460 io_write32(mux->base.va + mux->i2c[bid].scl_mux, I2C_MUX_VAL(bid)); in imx_i2c_init()
461 io_write32(mux->base.va + mux->i2c[bid].scl_cfg, I2C_CFG_VAL(bid)); in imx_i2c_init()
462 if (mux->i2c[bid].scl_inp) in imx_i2c_init()
463 io_write32(mux->base.va + mux->i2c[bid].scl_inp, in imx_i2c_init()
466 io_write32(mux->base.va + mux->i2c[bid].sda_mux, I2C_MUX_VAL(bid)); in imx_i2c_init()
467 io_write32(mux->base.va + mux->i2c[bid].sda_cfg, I2C_CFG_VAL(bid)); in imx_i2c_init()
468 if (mux->i2c[bid].sda_inp) in imx_i2c_init()
469 io_write32(mux->base.va + mux->i2c[bid].sda_inp, in imx_i2c_init()