Hello,
I'm using a gumstix overo board and I want to install my camera driver (v4l2_driver.ko) on it. the driver was deliverd for the use of the 2.6.34 kernel. I want to use it with the 2.6.37 kernel. As far I could see in source code the module should be loaded without problems. The only thing that differs is the i2c implemenation. To use the driver with the 2.6.34 kernel I needed to implement several lines in the board-overo.c file:
#define LM3553_SLAVE_ADDRESS 0x53
#define OV3640_I2C_ADDR (0x78 >> 1)
int omap3evm_ov3640_platform_data;
int lm3553_platform_data;
static struct i2c_board_info __initdata omap3_i2c_boardinfo_3[] = {
{
I2C_BOARD_INFO("ov3640", OV3640_I2C_ADDR),
.platform_data = &omap3evm_ov3640_platform_data,
},
{
I2C_BOARD_INFO("lm3553",LM3553_SLAVE_ADDRESS),
.platform_data = &lm3553_platform_data,
},
};
static int __init overo_i2c_init(void)
{
omap_register_i2c_bus(1, 2600, overo_i2c_boardinfo,
ARRAY_SIZE(overo_i2c_boardinfo));
/* i2c2 pins are used for gpio */
omap_register_i2c_bus(3, 400, omap3_i2c_boardinfo_3, ARRAY_SIZE(omap3_i2c_boardinfo_3));
return 0;
}
But when I try the same in the 2.6.37 kernel it does not work. Probably because of the different i2c implementation. Does anyone have an idea what I need to do?
Regards, Tom