diff options
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-mx2-camera.c')
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-mx2-camera.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-mx2-camera.c b/arch/arm/plat-mxc/devices/platform-mx2-camera.c index b3f4828dc447..11eace953a09 100644 --- a/arch/arm/plat-mxc/devices/platform-mx2-camera.c +++ b/arch/arm/plat-mxc/devices/platform-mx2-camera.c | |||
@@ -62,3 +62,21 @@ struct platform_device *__init imx_add_mx2_camera( | |||
62 | res, data->iobaseemmaprp ? 4 : 2, | 62 | res, data->iobaseemmaprp ? 4 : 2, |
63 | pdata, sizeof(*pdata), DMA_BIT_MASK(32)); | 63 | pdata, sizeof(*pdata), DMA_BIT_MASK(32)); |
64 | } | 64 | } |
65 | |||
66 | struct platform_device *__init imx_add_mx2_emmaprp( | ||
67 | const struct imx_mx2_camera_data *data) | ||
68 | { | ||
69 | struct resource res[] = { | ||
70 | { | ||
71 | .start = data->iobaseemmaprp, | ||
72 | .end = data->iobaseemmaprp + data->iosizeemmaprp - 1, | ||
73 | .flags = IORESOURCE_MEM, | ||
74 | }, { | ||
75 | .start = data->irqemmaprp, | ||
76 | .end = data->irqemmaprp, | ||
77 | .flags = IORESOURCE_IRQ, | ||
78 | }, | ||
79 | }; | ||
80 | return imx_add_platform_device_dmamask("m2m-emmaprp", 0, | ||
81 | res, 2, NULL, 0, DMA_BIT_MASK(32)); | ||
82 | } | ||