User Tools

Site Tools


soc_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
soc_camera [2009/11/16 12:54] – created suapapasoc_camera [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 11: Line 11:
  .remove = mt9m001_remove,  .remove = mt9m001_remove,
  .id_table = mt9m001_id,  .id_table = mt9m001_id,
 +};
 +</code>
 +
 +icl은 arch/arm/mach-pxa/보드이름.c 에서 정의/구현됨 예. pcm990-baseboard.c march-rfidc100.c ???
 +<code c>
 +static struct soc_camera_link iclink = {
 + .bus_id = 0, /* Must match with the camera ID above */
 + .query_bus_param = pcm990_camera_query_bus_param,
 + .set_bus_param = pcm990_camera_set_bus_param,
 + .free_bus = pcm990_camera_free_bus,
 +};
 +</code>
 +이게 i2c의 platform_data로 묶여 들어감.
 +<code c>
 +/* Board I2C devices. */
 +static struct i2c_board_info __initdata pcm990_i2c_devices[] = {
 + {
 + /* Must initialize before the camera(s) */
 + I2C_BOARD_INFO("pca9536", 0x41),
 + .platform_data = &pca9536_data,
 + }, {
 + I2C_BOARD_INFO("mt9v022", 0x48),
 + .platform_data = &iclink, /* With extender */
 + }, {
 + I2C_BOARD_INFO("mt9m001", 0x5d),
 + .platform_data = &iclink, /* With extender */
 + },
 }; };
 </code> </code>
soc_camera.1258376055.txt.gz · Last modified: 2013/08/03 05:04 (external edit)