aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/devices.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-06-21 01:15:59 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 08:18:28 -0400
commit94d359586480fd6d22eccec5dc3693d7d0f68928 (patch)
treed698ab04c7381f9f4b40915acc80b7aa98d8f1de /arch/arm/mach-mx2/devices.c
parentb725abad348d1f4fea8771eb23452eec2b7fe65f (diff)
mx27: 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-mx2/devices.c')
-rw-r--r--arch/arm/mach-mx2/devices.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c
index 4df2e340652c..28caa21cb56e 100644
--- a/arch/arm/mach-mx2/devices.c
+++ b/arch/arm/mach-mx2/devices.c
@@ -40,6 +40,37 @@
40 40
41#include "devices.h" 41#include "devices.h"
42 42
43#ifdef CONFIG_MACH_MX27
44static struct resource mx27_camera_resources[] = {
45 {
46 .start = MX27_CSI_BASE_ADDR,
47 .end = MX27_CSI_BASE_ADDR + 0x1f,
48 .flags = IORESOURCE_MEM,
49 }, {
50 .start = MX27_EMMA_PRP_BASE_ADDR,
51 .end = MX27_EMMA_PRP_BASE_ADDR + 0x1f,
52 .flags = IORESOURCE_MEM,
53 }, {
54 .start = MX27_INT_CSI,
55 .end = MX27_INT_CSI,
56 .flags = IORESOURCE_IRQ,
57 },{
58 .start = MX27_INT_EMMAPRP,
59 .end = MX27_INT_EMMAPRP,
60 .flags = IORESOURCE_IRQ,
61 },
62};
63struct platform_device mx27_camera_device = {
64 .name = "mx2-camera",
65 .id = 0,
66 .num_resources = ARRAY_SIZE(mx27_camera_resources),
67 .resource = mx27_camera_resources,
68 .dev = {
69 .coherent_dma_mask = 0xffffffff,
70 },
71};
72#endif
73
43/* 74/*
44 * SPI master controller 75 * SPI master controller
45 * 76 *