This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to set the I2C running as High speed mode?

Hi,

 

  I am using dm8168-evm DDR2 board and EZSDK_5_01_01_80 software.

  Now I want to test the I2C speed of the board.

  In sprugx8.pdf it said that  "Support for standard mode (up to 100K bits/s) and fast mode (up to 400K bits/s)".

  But in my test I just got 4K bits/s.

  I don't know how to calculate the System clock frequency of my chip now, so I checked the code of linux kernel in psp.

  In /arch/arm/mach-omap2/board-ti8168evm.c

------------------------------------------------------------------------------------------------------------------------------------------

static int __init ti816x_evm_i2c_init(void)

{

omap_register_i2c_bus(1, 100, ti816x_i2c_boardinfo0, //clkrate is 100KHz?

ARRAY_SIZE(ti816x_i2c_boardinfo0));

omap_register_i2c_bus(2, 100, ti816x_i2c_boardinfo1,

ARRAY_SIZE(ti816x_i2c_boardinfo1));

 

return 0;

}

----------------------------------------------------------------------------------------------------------------------------------------------

 Should I change the parameters in omap_register_i2c_bus to make the I2C become faster?

 Or is there any other method to deal with the problem?

 

 

Best regards,

lei