diff options
-rw-r--r-- | arch/arm/mach-mx2/clock_imx27.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/devices.c | 31 | ||||
-rw-r--r-- | arch/arm/mach-mx2/devices.h | 1 |
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 | ||
44 | static 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 | }; | ||
63 | struct 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; | |||
29 | extern struct platform_device mxc_sdhc_device0; | 29 | extern struct platform_device mxc_sdhc_device0; |
30 | extern struct platform_device mxc_sdhc_device1; | 30 | extern struct platform_device mxc_sdhc_device1; |
31 | extern struct platform_device mxc_otg_udc_device; | 31 | extern struct platform_device mxc_otg_udc_device; |
32 | extern struct platform_device mx27_camera_device; | ||
32 | extern struct platform_device mxc_otg_host; | 33 | extern struct platform_device mxc_otg_host; |
33 | extern struct platform_device mxc_usbh1; | 34 | extern struct platform_device mxc_usbh1; |
34 | extern struct platform_device mxc_usbh2; | 35 | extern struct platform_device mxc_usbh2; |