AnsweredAssumed Answered

mx6sl_csi_io_init

Question asked by Rajkumar Madhani on Aug 11, 2014
Latest reply on Aug 12, 2014 by PeterChan

Hi,

 

I am working on barcode module. after calling i2c_register_board_info.    mx6sl_csi_io_init is not invoked. how this function is called?

 

static struct fsl_mxc_camera_platform_data camera_data = {
        .mclk = 24000000,

        .io_init = mx6sl_csi_io_init,
        .pwdn = mx6sl_csi_cam_powerdown,
        .core_regulator = "VGEN2_1V5",
        .analog_regulator = "VGEN6_2V8",
};

 

static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {

        {

                I2C_BOARD_INFO("se4500", 0x5c),

                .platform_data = (void *)&camera_data,

        },

};


i2c_register_board_info(2, mxc_i2c2_board_info,ARRAY_SIZE(mxc_i2c2_board_info));

 

 

In the above code  after i2c register..

 

How static void mx6sl_csi_io_init(void) is exactly called . my doubt is weather it is called from userspace or from kernel function. if kernel how it is called.



Thank you.

Outcomes