How to enable i2c-3

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,654件の閲覧回数
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 解決策
1,417件の閲覧回数
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 返信
1,418件の閲覧回数
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 件の賞賛
返信