aboutsummaryrefslogtreecommitdiffstats
path: root/arch
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
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')
-rw-r--r--arch/arm/mach-mx2/clock_imx27.c2
-rw-r--r--arch/arm/mach-mx2/devices.c31
-rw-r--r--arch/arm/mach-mx2/devices.h1
3 files changed, 33 insertions, 1 deletions
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c
index 0f0823c8b170..5a1aa15c8a16 100644
--- a/arch/arm/mach-mx2/clock_imx27.c
+++ b/arch/arm/mach-mx2/clock_imx27.c
@@ -644,7 +644,7 @@ static struct clk_lookup lookups[] = {
644 _REGISTER_CLOCK("spi_imx.1", NULL, cspi2_clk) 644 _REGISTER_CLOCK("spi_imx.1", NULL, cspi2_clk)
645 _REGISTER_CLOCK("spi_imx.2", NULL, cspi3_clk) 645 _REGISTER_CLOCK("spi_imx.2", NULL, cspi3_clk)
646 _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) 646 _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk)
647 _REGISTER_CLOCK(NULL, "csi", csi_clk) 647 _REGISTER_CLOCK("mx2-camera.0", NULL, csi_clk)
648 _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk) 648 _REGISTER_CLOCK("fsl-usb2-udc", "usb", usb_clk)
649 _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usb_clk1) 649 _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usb_clk1)
650 _REGISTER_CLOCK("mxc-ehci.0", "usb", usb_clk) 650 _REGISTER_CLOCK("mxc-ehci.0", "usb", usb_clk)
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 *
diff --git a/arch/arm/mach-mx2/devices.h b/arch/arm/mach-mx2/devices.h
index cd4977990bd4..aefc87a7609e 100644
--- a/arch/arm/mach-mx2/devices.h
+++ b/arch/arm/mach-mx2/devices.h
@@ -29,6 +29,7 @@ extern struct platform_device mxc_i2c_device1;
29extern struct platform_device mxc_sdhc_device0; 29extern struct platform_device mxc_sdhc_device0;
30extern struct platform_device mxc_sdhc_device1; 30extern struct platform_device mxc_sdhc_device1;
31extern struct platform_device mxc_otg_udc_device; 31extern struct platform_device mxc_otg_udc_device;
32extern struct platform_device mx27_camera_device;
32extern struct platform_device mxc_otg_host; 33extern struct platform_device mxc_otg_host;
33extern struct platform_device mxc_usbh1; 34extern struct platform_device mxc_usbh1;
34extern struct platform_device mxc_usbh2; 35extern struct platform_device mxc_usbh2;