I2C frequency on 2 buses

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C frequency on 2 buses

Jump to solution
1,593 Views
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?

Labels (1)
0 Kudos
1 Solution
952 Views
samuelsalas
Contributor III

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

View solution in original post

0 Kudos
4 Replies
953 Views
samuelsalas
Contributor III

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

0 Kudos
952 Views
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 Kudos
952 Views
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 Kudos
952 Views
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 Kudos