I2C frequency on 2 buses

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

I2C frequency on 2 buses

跳至解决方案
2,541 次查看
samuelsalas
Contributor III

Hi,

I would like to know how is it possible to change the frequency on 2 buses.

In i2c-mxs.c I can configure 100kHz or 400kHz in the 2 buses but I can't do different frequencies on the 2 buses. Anyone can help?

标签 (1)
0 项奖励
回复
1 解答
1,900 次查看
samuelsalas
Contributor III

We finaly modify the kernel by adding the speed in the I2C structure.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,901 次查看
samuelsalas
Contributor III

We finaly modify the kernel by adding the speed in the I2C structure.

0 项奖励
回复
1,900 次查看
samuelsalas
Contributor III

Hi (and happy new year!!!!). We already have modified some features in the kernel and I prefer not to change the kernel. I think the problem could be solved in the i2c-mxs.c file with a "if i2C0 then 100kHz else 400kHz". But I would prefer another solution...

0 项奖励
回复
1,900 次查看
fabio_estevam
NXP Employee
NXP Employee

Samuel,

As Marek confirmed this works on 3.7, maybe you should switch your kernel to 3.7.

Regards,

Fabio Estevam

0 项奖励
回复
1,900 次查看
MarekVasut
Senior Contributor I

This works in 3.7 (upstream Linux kernel). Is there any reason why this won't work in the FSL BSP?

0 项奖励
回复