How to enable i2c-3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable i2c-3

跳至解决方案
885 次查看
gerhardrauterbe
Contributor II


Hello together,

for a customer project we need to enable the bus i2c-3

When I lused i2cdetetct -l with the linux kernel 3.0.35_4.1.0 on which our system based, , I saw only, that the i2c bus 1,2 were found.

Inside  the kernel  source board_mxq6_sabreauto.c I found how the other i2c bus were added,

But i f I add in this way  for the i2c bus 3  and compile it, I got the bus number i2c-0

So the question is, what I have forgot to do?

I made the following addition

static struct imxi2c_platform_data mx6_ces_coreboard_i2c2_data = {
.bitrate = 400000,
};


static struct i2c_board_info mxc_i2c3_board_info[] __initdata = {
{
  I2C_BOARD_INFO("pcm5310", 0x46),
},
};

imx6q_add_imx_i2c(3, &mx6_ces_coreboard_i2c3_data);

i2c_register_board_info(3, mxc_i2c3_board_info,
   ARRAY_SIZE(mxc_i2c3_board_info));

regards Gerhard

标签 (3)
0 项奖励
1 解答
648 次查看
gerhardrauterbe
Contributor II

Problem was solved, it was a defect inside  the system, which did not show us the adress of the device.

The bus was found als i2c bus 2.


在原帖中查看解决方案

0 项奖励
1 回复
649 次查看
gerhardrauterbe
Contributor II

Problem was solved, it was a defect inside  the system, which did not show us the adress of the device.

The bus was found als i2c bus 2.


0 项奖励