Hi,
Currently my i2c communication is happening at 100k speed.I wanted to change it.I tried it by changing
in drivers/i2c/busses/i2c-imx.c file(IMX_I2C_BIT_RATE),but no use.Can anybody guide me..?
Solved! Go to Solution.
Hello,raghavendra,
Open linux/arch/arm/mach-mx25/mx25_3stack.c, and adjust the following code, then Try :
static struct imxi2c_platform_data mxci2c_data = {
.bitrate = 100000, /* if you want 10K , .biitrate = 10000;*/
};
/*!
* Board specific initialization.
*/
static void __init mxc_board_init(void)
{
.....
#ifdef CONFIG_I2C
mxc_register_device(&mxc_i2c_device0, &mxci2c_data);
i2c_register_board_info(0, mxc_i2c_board_info,
ARRAY_SIZE(mxc_i2c_board_info));
#endif
....
}
Recompile linux kernel , then check if i2c bit rate is right.
Regards,
Weidong
Hello,raghavendra,
Open linux/arch/arm/mach-mx25/mx25_3stack.c, and adjust the following code, then Try :
static struct imxi2c_platform_data mxci2c_data = {
.bitrate = 100000, /* if you want 10K , .biitrate = 10000;*/
};
/*!
* Board specific initialization.
*/
static void __init mxc_board_init(void)
{
.....
#ifdef CONFIG_I2C
mxc_register_device(&mxc_i2c_device0, &mxci2c_data);
i2c_register_board_info(0, mxc_i2c_board_info,
ARRAY_SIZE(mxc_i2c_board_info));
#endif
....
}
Recompile linux kernel , then check if i2c bit rate is right.
Regards,
Weidong