2010-09-15 08:09:32     I2C Driver SCL frequency runtime modification

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-09-15 08:09:32     I2C Driver SCL frequency runtime modification

svs k (INDIA)

Message: 93465   

 

Hi All,

 

I m working in 2009R1-RC1 Distribution for a BF533 custom board.  We have set SCL frequency to be 12.5KHz  in

 

linux-2.6.x/arch/blackfin/mach-bf533/boards/ezkit.c

 

 

static struct i2c_gpio_platform_data i2c_gpio_data = {

        .sda_pin                = 1,

        .scl_pin                = 0,

        .sda_is_open_drain      = 0,

        .scl_is_open_drain      = 0,

        .udelay                 = 40,

};

 

 

 

Now, I need two I2C devices one to run at 12.5KHz another to run at 400KHz.. Is it possible to achieve this during runtime? Kindly let us know the possibilities

 

 

 

QuoteReplyEditDelete

 

 

2010-09-15 13:49:27     Re: I2C Driver SCL frequency runtime modification

Mike Frysinger (UNITED STATES)

Message: 93471   

 

i dont believe the i2c framework supports changing clock speeds on the fly.  you'd have to ask on the linux i2c mailing lists.

QuoteReplyEditDelete

 

 

2010-09-15 23:59:14     Re: I2C Driver SCL frequency runtime modification

Sonic Zhang (CHINA)

Message: 93480   

 

The only way is to configure 2 individual I2C over gpio bus. Connect your devices to different bus respectively.

Attachments

    Outcomes