]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP3 camera driver: OMAP34XXCAM: Camera Base Address.
authorSergio Aguirre <saaguirre@ti.com>
Fri, 29 Aug 2008 23:34:17 +0000 (18:34 -0500)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Sep 2008 00:16:23 +0000 (17:16 -0700)
ARM: OMAP: OMAP34XXCAM: Camera Base Address.

Adding OMAP 3 Camera registers base address, and Platform Device.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Signed-off-by: Sameer Venkatraman <sameerv@ti.com>
Signed-off-by: Mohit Jalori <mjalori@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c
arch/arm/plat-omap/include/mach/omap34xx.h

index c7de03ea9309bb8109dd167ec7443514cdee7b03..f0e601c78c47ac9aebec4059e1eb94ddebb0a142 100644 (file)
@@ -46,6 +46,32 @@ static struct platform_device omap_cam_device = {
        .resource       = cam_resources,
 };
 
+static inline void omap_init_camera(void)
+{
+       platform_device_register(&omap_cam_device);
+}
+
+#elif defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
+
+static struct resource cam_resources[] = {
+       {
+               .start          = OMAP34XX_CAMERA_BASE,
+               .end            = OMAP34XX_CAMERA_BASE + 0x1B70,
+               .flags          = IORESOURCE_MEM,
+       },
+       {
+               .start          = INT_34XX_CAM_IRQ,
+               .flags          = IORESOURCE_IRQ,
+       }
+};
+
+static struct platform_device omap_cam_device = {
+       .name           = "omap34xxcam",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(cam_resources),
+       .resource       = cam_resources,
+};
+
 static inline void omap_init_camera(void)
 {
        platform_device_register(&omap_cam_device);
index f54dc0b86cc3771b2bee5dca5026069bc49cf711..4fb355657cfa2b7616c07fd7621998b6df395878 100644 (file)
@@ -63,6 +63,7 @@
 #define OMAP2_CM_BASE                  OMAP3430_CM_BASE
 #define OMAP2_PRM_BASE                 OMAP3430_PRM_BASE
 #define OMAP2_VA_IC_BASE               IO_ADDRESS(OMAP34XX_IC_BASE)
+#define OMAP34XX_CAMERA_BASE           (L4_34XX_BASE + 0xBC000)
 
 #endif