Skip to content

Commit

Permalink
at91sam9m10g45: enable OV5640 support
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Wu <josh.wu@atmel.com>
  • Loading branch information
JoshWu committed Dec 6, 2013
1 parent 351194f commit 6580958
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/configs/at91sam9g45_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,5 @@ CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_SOC_CAMERA=y
CONFIG_SOC_CAMERA_OV2640=y
CONFIG_SOC_CAMERA_OV5642=y
CONFIG_VIDEO_ATMEL_ISI=y
21 changes: 21 additions & 0 deletions arch/arm/mach-at91/board-sam9m10g45ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,26 @@ static struct platform_device isi_ov2640 = {
.platform_data = &iclink_ov2640,
},
};

static struct i2c_board_info i2c_ov5640 = {
I2C_BOARD_INFO("ov5642", 0x3c),
};

static struct soc_camera_link iclink_ov5640 = {
.bus_id = 0,
.board_info = &i2c_ov5640,
.i2c_adapter_id = 0,
.power = i2c_camera_power,
.query_bus_param = isi_camera_query_bus_param,
};

static struct platform_device isi_ov5640 = {
.name = "soc-camera-pdrv",
.id = 1,
.dev = {
.platform_data = &iclink_ov5640,
},
};
#endif


Expand Down Expand Up @@ -454,6 +474,7 @@ static struct platform_device *devices[] __initdata = {
#if defined(CONFIG_SOC_CAMERA_OV2640) || \
defined(CONFIG_SOC_CAMERA_OV2640_MODULE)
&isi_ov2640,
&isi_ov5640,
#endif
};

Expand Down

0 comments on commit 6580958

Please sign in to comment.