AnsweredAssumed Answered

I2C1 Configuration in I.MX28 BSP

Question asked by srinivasan shanmugam on Sep 29, 2013

Dear I.MX Community,

 

I'm having few doubts w.r.t the below points in I2C1 configuration in I.MX28 BSP, could any please confirm whether the following are correct or not w.r.t I2c1 configuration or anything other than this needs to be done in order to configure I2C1,

 

I need to Configure I2c1 for my EEPROM, so I did the following changes,

 

Device Driver

                             <*> I2C support  --->

                                           Enable I2C1 module

 

Board file changes /linux-2.6.35.3/arch/arm/mach-mx28/mx28evk.c :

static struct i2c_board_info __initdata mxs_i2c_device[] = {

// EEPROM

        {

               I2C_BOARD_INFO("24c08", 0x50),  .flags = I2C_M_TEN,

                 }

 

static void __init i2c_device_init(void)

{

       i2c_register_board_info(1, mxs_i2c_device, ARRAY_SIZE(mxs_i2c_device));

}

        

PAD CONFIGURATION for I2C1:(arch/arm/mach-mx28/mx28evk_pins.c):

         {

         .name = "I2C1_SCL",

         .id = PINID_I2C1_SCL,

         .fun = PIN_FUN2,

         .strength = PAD_8MA,

         .voltage = PAD_3_3V,

         .drive = 1,

         },

        {

         .name = "I2C1_SDA",

         .id = PINID_I2C1_SDA,

         .fun = PIN_FUN2,

         .strength = PAD_8MA,

         .voltage = PAD_3_3V,

         .drive = 1,

         },

Kindly do the needful as early as possible,

 

Awaiting for your replies,

Thanks in advance,

Outcomes