diff options
author | Baruch Siach <baruch@tkos.co.il> | 2010-06-21 08:16:00 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-26 14:18:29 +0200 |
commit | f747847e8f0312ddc50fe7cb7ed4f6399ec154e0 (patch) | |
tree | a509e75f83c2835a756ef2c1a1c256c9802268b1 /arch/arm/mach-mx25/devices.c | |
parent | 94d359586480fd6d22eccec5dc3693d7d0f68928 (diff) | |
download | kernel_samsung_aries-f747847e8f0312ddc50fe7cb7ed4f6399ec154e0.zip kernel_samsung_aries-f747847e8f0312ddc50fe7cb7ed4f6399ec154e0.tar.gz kernel_samsung_aries-f747847e8f0312ddc50fe7cb7ed4f6399ec154e0.tar.bz2 |
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.c | 22 |
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, + }, +}; |