MCF v4 - Linux I2C bus driver, how to select adapter?

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

MCF v4 - Linux I2C bus driver, how to select adapter?

跳至解决方案
2,066 次查看
lmhdoms
Contributor III

Hello all,

 

The MCF54418 has 6 I2C modules. In my setup I am using I2C5 connected to three I2C slave devices. U-Boot has been modfied to correctly probe all slaves. Moving on to Linux I face that the driver will initialize I2C0 and not I2C5, hence my slaves can not be detected. On I2C0 the slave 2C (a clock chip) is detected and I can communicate through i2c-dev. So all is fine, except for the adapter selection.

 

I looked in the driver "linux/drivers/i2c/busses/i2c-mcf.c" but the changes needed are not evident!

 

Any help is appreciated. I belive Linux should be able to find both adapters, but if not then I2C5 is enough.

 

I am using ltib-modelo-20100709 and I have attached a listing of U-Boot and kernel boot.

 

Thanks and regards,

- Lars

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

Just to close this issue, I edited the linux/arch/m68k/coldfire/m5441x/devices.c  file which has all the port configurations for the specific processor. Also, I modified the ltib menu (/config/platform/modelo/main.lkc) to support selecting I2C adapter 0-5.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,016 次查看
lmhdoms
Contributor III

Just to close this issue, I edited the linux/arch/m68k/coldfire/m5441x/devices.c  file which has all the port configurations for the specific processor. Also, I modified the ltib menu (/config/platform/modelo/main.lkc) to support selecting I2C adapter 0-5.

0 项奖励
回复