I2C Clock frequencyin I.MX28 BSP

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

I2C Clock frequencyin I.MX28 BSP

跳至解决方案
1,726 次查看
srinivasanshanm
Contributor III

Hi,

I wanted to know i2c clock frequency is set to 400Khz or not for i2c0 bus & i2c1 bus?..

I found that  in linux/arch/arm/mach-imx28/regs-i2c.h, it is set as below

"

#define BP_I2C_TIMING0_HIGH_COUNT       16

and compared with description from sect.27.5.2 "I2C Timing Register 0

(HW_I2C_TIMING0)" i.MX28 Reference Manual (rev.1, 9/2010):

"HW_I2C_TIMING0_WR(0x000F0007); // high time = 15 clocks, read bit at

7 for 400KHz at 24mhz"

<http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf>

"But " BP_I2C_TIMING0_HIGH_COUNT " is not used in the I2c bus driver or I2c chip driver as it is only defined in the regs-i2c.h & more over the entire regs-i2c.h is being protected under the flag "#ifndef __ARCH_ARM___I2C_H" , could any body pls let me know how this is getting invoked in my I2c bus driver or i2c chip driver in the following file also,


drivers/i2c/busses/i2c-mxs.c

drivers/i2c/busses/i2c-mxs.h

arch/arm/mach-mx28/include/mach/regs-i2c.h


Could you please let me know the i2c scl frequency is it configured for 400khz I2c0 bus & I2c1 bus & how this is getting invoked in the i2c driver code


Please kindly do the needful,



Thanks in advance

标签 (2)
0 项奖励
回复
1 解答
1,370 次查看
srinivasanshanm
Contributor III

Please close this issue it is resolved, thanks a lot fro your support

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,370 次查看
YixingKong
Senior Contributor IV

Srinivasan

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the

issue, can we close the discussion? If you still need Freescale help, please feel free to contact us.

Thanks,
Yixing

0 项奖励
回复
1,371 次查看
srinivasanshanm
Contributor III

Please close this issue it is resolved, thanks a lot fro your support

0 项奖励
回复