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
已解决! 转到解答。
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.