Skip to content

Commit

Permalink
ARM: OMAP3: support a phony omap3isp device
Browse files Browse the repository at this point in the history
This is non-upstream stuff.

Only required to test omap3isp IOMMU functionality.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
  • Loading branch information
ohadbc committed Nov 10, 2011
1 parent 1b57e84 commit cf02f84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-omap2/devices.c
Expand Up @@ -216,6 +216,12 @@ static struct omap_iommu_arch_data omap3_isp_iommu = {
.name = "isp",
};

struct isp_platform_data {
struct isp_v4l2_subdevs_group *subdevs;
void (*set_constraints)(struct isp_device *isp, bool enable);
};
static struct isp_platform_data bogus_isp_pdata;

int omap3_init_camera(struct isp_platform_data *pdata)
{
omap3isp_device.dev.platform_data = pdata;
Expand Down Expand Up @@ -689,6 +695,7 @@ static int __init omap2_init_devices(void)
omap_init_audio();
omap_init_mcpdm();
omap_init_camera();
omap3_init_camera(&bogus_isp_pdata);
omap_init_mbox();
omap_init_mcspi();
omap_init_pmu();
Expand Down

0 comments on commit cf02f84

Please sign in to comment.