All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 14/15] OMAP3 camera driver: OMAP34XXCAM: Camera Base Address.
@ 2008-08-29 23:34 Aguirre Rodriguez, Sergio Alberto
  2008-09-11  0:16 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Aguirre Rodriguez, Sergio Alberto @ 2008-08-29 23:34 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

From: Sergio Aguirre <saaguirre@ti.com>

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>
---
 arch/arm/plat-omap/include/mach-omap2/devices.c              |   26 ++++++++++++++++++++++++++
 arch/arm/plat-omap/include/plat-omap/include/mach/omap34xx.h |    1 +
 2 files changed, 27 insertions(+)

--- a/arch/arm/plat-omap/include/mach/omap34xx.h
+++ b/arch/arm/plat-omap/include/mach/omap34xx.h
@@ -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
 
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -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)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 14/15] OMAP3 camera driver: OMAP34XXCAM: Camera Base Address.
@ 2008-08-29 23:44 Aguirre Rodriguez, Sergio Alberto
  0 siblings, 0 replies; 3+ messages in thread
From: Aguirre Rodriguez, Sergio Alberto @ 2008-08-29 23:44 UTC (permalink / raw)
  To: video4linux-list@redhat.com

From: Sergio Aguirre <saaguirre@ti.com>

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>
---
 arch/arm/plat-omap/include/mach-omap2/devices.c              |   26 ++++++++++++++++++++++++++
 arch/arm/plat-omap/include/plat-omap/include/mach/omap34xx.h |    1 +
 2 files changed, 27 insertions(+)

--- a/arch/arm/plat-omap/include/mach/omap34xx.h
+++ b/arch/arm/plat-omap/include/mach/omap34xx.h
@@ -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
 
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -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:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 14/15] OMAP3 camera driver: OMAP34XXCAM: Camera Base Address.
  2008-08-29 23:34 [PATCH 14/15] OMAP3 camera driver: OMAP34XXCAM: Camera Base Address Aguirre Rodriguez, Sergio Alberto
@ 2008-09-11  0:16 ` Tony Lindgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2008-09-11  0:16 UTC (permalink / raw)
  To: Aguirre Rodriguez, Sergio Alberto; +Cc: linux-omap@vger.kernel.org

* Aguirre Rodriguez, Sergio Alberto <saaguirre@ti.com> [080829 16:34]:
> From: Sergio Aguirre <saaguirre@ti.com>
> 
> ARM: OMAP: OMAP34XXCAM: Camera Base Address.
> 
> Adding OMAP 3 Camera registers base address, and Platform Device.

Pushing today.

Tony


> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> Signed-off-by: Sameer Venkatraman <sameerv@ti.com>
> Signed-off-by: Mohit Jalori <mjalori@ti.com>
> ---
>  arch/arm/plat-omap/include/mach-omap2/devices.c              |   26 ++++++++++++++++++++++++++
>  arch/arm/plat-omap/include/plat-omap/include/mach/omap34xx.h |    1 +
>  2 files changed, 27 insertions(+)
> 
> --- a/arch/arm/plat-omap/include/mach/omap34xx.h
> +++ b/arch/arm/plat-omap/include/mach/omap34xx.h
> @@ -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
>  
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -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)
>  {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-11  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 23:34 [PATCH 14/15] OMAP3 camera driver: OMAP34XXCAM: Camera Base Address Aguirre Rodriguez, Sergio Alberto
2008-09-11  0:16 ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2008-08-29 23:44 Aguirre Rodriguez, Sergio Alberto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.