Skip to contentSkip to conversation

OMAP3 camera driver platform device

PATCH New Mohit Jalori 1 participant 1 message Jul 1, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 9/16 OMAP3 camera driver platform device

From: Sameer Venkatraman <[email protected]>

ARM: OMAP: OMAP34XXCAM: Camera Plataform Device.

Adding OMAP 3 Camera Platform Device.

---
 devices.c |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+)
arch/arm/mach-omap2/devices.c +26 -0
@@ -50,6 +50,32 @@
 {
 	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);
+}
 #else
 static inline void omap_init_camera(void)
 {

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list