summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25/devices.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-06-21 08:16:00 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 14:18:29 +0200
commitf747847e8f0312ddc50fe7cb7ed4f6399ec154e0 (patch)
treea509e75f83c2835a756ef2c1a1c256c9802268b1 /arch/arm/mach-mx25/devices.c
parent94d359586480fd6d22eccec5dc3693d7d0f68928 (diff)
downloadop-kernel-dev-f747847e8f0312ddc50fe7cb7ed4f6399ec154e0.zip
op-kernel-dev-f747847e8f0312ddc50fe7cb7ed4f6399ec154e0.tar.gz
mx25: add support for the CSI device
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r--arch/arm/mach-mx25/devices.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index baf0a79..82d3e53 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -571,3 +571,25 @@ struct platform_device imx_ssi_device1 = {
.num_resources = ARRAY_SIZE(imx_ssi_resources1),
.resource = imx_ssi_resources1,
};
+
+static struct resource mx25_csi_resources[] = {
+ {
+ .start = MX25_CSI_BASE_ADDR,
+ .end = MX25_CSI_BASE_ADDR + 0xfff,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .start = MX25_INT_CSI,
+ .flags = IORESOURCE_IRQ
+ },
+};
+
+struct platform_device mx25_csi_device = {
+ .name = "mx2-camera",
+ .id = 0,
+ .num_resources = ARRAY_SIZE(mx25_csi_resources),
+ .resource = mx25_csi_resources,
+ .dev = {
+ .coherent_dma_mask = 0xffffffff,
+ },
+};
OpenPOWER on IntegriCloud