public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [RESEND 3][PATCH] Adding csi2_fck declaration to clock34xx.h
@ 2008-09-03 16:30 Aguirre Rodriguez, Sergio Alberto
  2008-09-05  6:03 ` Paul Walmsley
  0 siblings, 1 reply; 3+ messages in thread
From: Aguirre Rodriguez, Sergio Alberto @ 2008-09-03 16:30 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: linux-omap@vger.kernel.org

From: Sergio Aguirre <saaguirre@ti.com>

ARM: OMAP: Add CSI2 clock struct for handling it with clock API.

Add CSI2 clock struct for handling it with clock API when TI PM is disabled.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 arch/arm/mach-omap2/clock34xx.h       |   12 ++++++++++++
 arch/arm/mach-omap2/cm-regbits-34xx.h |    2 ++
 2 files changed, 14 insertions(+)

Index: linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h
===================================================================
--- linux-omap-2.6.orig/arch/arm/mach-omap2/clock34xx.h	2008-08-28 13:59:57.000000000 -0500
+++ linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h	2008-09-03 11:33:20.000000000 -0500
@@ -2228,6 +2228,17 @@
 	.recalc		= &followparent_recalc,
 };
 
+static struct clk csi2_96m_fck = {
+	.name		= "csi2_96m_fck",
+	.parent		= &core_96m_fck,
+	.init		= &omap2_init_clk_clkdm,
+	.enable_reg	= _OMAP34XX_CM_REGADDR(OMAP3430_CAM_MOD, CM_FCLKEN),
+	.enable_bit	= OMAP3430_EN_CSI2_SHIFT,
+	.flags		= CLOCK_IN_OMAP343X,
+	.clkdm		= { .name = "cam_clkdm" },
+	.recalc		= &followparent_recalc,
+};
+
 /* USBHOST - 3430ES2 only */
 
 static struct clk usbhost_120m_fck = {
@@ -3208,6 +3219,7 @@
 	&dss_ick,
 	&cam_mclk,
 	&cam_ick,
+	&csi2_96m_fck,
 	&usbhost_120m_fck,
 	&usbhost_48m_fck,
 	&usbhost_ick,
Index: linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h
===================================================================
--- linux-omap-2.6.orig/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-08-28 13:59:57.000000000 -0500
+++ linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-09-02 17:53:48.000000000 -0500
@@ -530,6 +530,8 @@
 #define OMAP3430_CLKACTIVITY_DSS_MASK			(1 << 0)
 
 /* CM_FCLKEN_CAM specific bits */
+#define OMAP3430_EN_CSI2				(1 << 1)
+#define OMAP3430_EN_CSI2_SHIFT				1
 
 /* CM_ICLKEN_CAM specific bits */


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

* Re: [RESEND 3][PATCH] Adding csi2_fck declaration to clock34xx.h
  2008-09-03 16:30 [RESEND 3][PATCH] Adding csi2_fck declaration to clock34xx.h Aguirre Rodriguez, Sergio Alberto
@ 2008-09-05  6:03 ` Paul Walmsley
  2008-09-05 17:04   ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Walmsley @ 2008-09-05  6:03 UTC (permalink / raw)
  To: Aguirre Rodriguez, Sergio Alberto; +Cc: linux-omap@vger.kernel.org

On Wed, 3 Sep 2008, Aguirre Rodriguez, Sergio Alberto wrote:

> From: Sergio Aguirre <saaguirre@ti.com>
> 
> ARM: OMAP: Add CSI2 clock struct for handling it with clock API.
> 
> Add CSI2 clock struct for handling it with clock API when TI PM is disabled.
> 
> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>

Acked-by: Paul Walmsley <paul@pwsan.com>


> ---
>  arch/arm/mach-omap2/clock34xx.h       |   12 ++++++++++++
>  arch/arm/mach-omap2/cm-regbits-34xx.h |    2 ++
>  2 files changed, 14 insertions(+)
> 
> Index: linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h
> ===================================================================
> --- linux-omap-2.6.orig/arch/arm/mach-omap2/clock34xx.h	2008-08-28 13:59:57.000000000 -0500
> +++ linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h	2008-09-03 11:33:20.000000000 -0500
> @@ -2228,6 +2228,17 @@
>  	.recalc		= &followparent_recalc,
>  };
>  
> +static struct clk csi2_96m_fck = {
> +	.name		= "csi2_96m_fck",
> +	.parent		= &core_96m_fck,
> +	.init		= &omap2_init_clk_clkdm,
> +	.enable_reg	= _OMAP34XX_CM_REGADDR(OMAP3430_CAM_MOD, CM_FCLKEN),
> +	.enable_bit	= OMAP3430_EN_CSI2_SHIFT,
> +	.flags		= CLOCK_IN_OMAP343X,
> +	.clkdm		= { .name = "cam_clkdm" },
> +	.recalc		= &followparent_recalc,
> +};
> +
>  /* USBHOST - 3430ES2 only */
>  
>  static struct clk usbhost_120m_fck = {
> @@ -3208,6 +3219,7 @@
>  	&dss_ick,
>  	&cam_mclk,
>  	&cam_ick,
> +	&csi2_96m_fck,
>  	&usbhost_120m_fck,
>  	&usbhost_48m_fck,
>  	&usbhost_ick,
> Index: linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h
> ===================================================================
> --- linux-omap-2.6.orig/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-08-28 13:59:57.000000000 -0500
> +++ linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-09-02 17:53:48.000000000 -0500
> @@ -530,6 +530,8 @@
>  #define OMAP3430_CLKACTIVITY_DSS_MASK			(1 << 0)
>  
>  /* CM_FCLKEN_CAM specific bits */
> +#define OMAP3430_EN_CSI2				(1 << 1)
> +#define OMAP3430_EN_CSI2_SHIFT				1
>  
>  /* CM_ICLKEN_CAM specific bits */
> 
> --
> 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
> 


- Paul

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

* Re: [RESEND 3][PATCH] Adding csi2_fck declaration to clock34xx.h
  2008-09-05  6:03 ` Paul Walmsley
@ 2008-09-05 17:04   ` Tony Lindgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2008-09-05 17:04 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: Aguirre Rodriguez, Sergio Alberto, linux-omap@vger.kernel.org

* Paul Walmsley <paul@pwsan.com> [080904 23:04]:
> On Wed, 3 Sep 2008, Aguirre Rodriguez, Sergio Alberto wrote:
> 
> > From: Sergio Aguirre <saaguirre@ti.com>
> > 
> > ARM: OMAP: Add CSI2 clock struct for handling it with clock API.
> > 
> > Add CSI2 clock struct for handling it with clock API when TI PM is disabled.
> > 
> > Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> 
> Acked-by: Paul Walmsley <paul@pwsan.com>

Pushing today.

Tony

> 
> 
> > ---
> >  arch/arm/mach-omap2/clock34xx.h       |   12 ++++++++++++
> >  arch/arm/mach-omap2/cm-regbits-34xx.h |    2 ++
> >  2 files changed, 14 insertions(+)
> > 
> > Index: linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h
> > ===================================================================
> > --- linux-omap-2.6.orig/arch/arm/mach-omap2/clock34xx.h	2008-08-28 13:59:57.000000000 -0500
> > +++ linux-omap-2.6/arch/arm/mach-omap2/clock34xx.h	2008-09-03 11:33:20.000000000 -0500
> > @@ -2228,6 +2228,17 @@
> >  	.recalc		= &followparent_recalc,
> >  };
> >  
> > +static struct clk csi2_96m_fck = {
> > +	.name		= "csi2_96m_fck",
> > +	.parent		= &core_96m_fck,
> > +	.init		= &omap2_init_clk_clkdm,
> > +	.enable_reg	= _OMAP34XX_CM_REGADDR(OMAP3430_CAM_MOD, CM_FCLKEN),
> > +	.enable_bit	= OMAP3430_EN_CSI2_SHIFT,
> > +	.flags		= CLOCK_IN_OMAP343X,
> > +	.clkdm		= { .name = "cam_clkdm" },
> > +	.recalc		= &followparent_recalc,
> > +};
> > +
> >  /* USBHOST - 3430ES2 only */
> >  
> >  static struct clk usbhost_120m_fck = {
> > @@ -3208,6 +3219,7 @@
> >  	&dss_ick,
> >  	&cam_mclk,
> >  	&cam_ick,
> > +	&csi2_96m_fck,
> >  	&usbhost_120m_fck,
> >  	&usbhost_48m_fck,
> >  	&usbhost_ick,
> > Index: linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h
> > ===================================================================
> > --- linux-omap-2.6.orig/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-08-28 13:59:57.000000000 -0500
> > +++ linux-omap-2.6/arch/arm/mach-omap2/cm-regbits-34xx.h	2008-09-02 17:53:48.000000000 -0500
> > @@ -530,6 +530,8 @@
> >  #define OMAP3430_CLKACTIVITY_DSS_MASK			(1 << 0)
> >  
> >  /* CM_FCLKEN_CAM specific bits */
> > +#define OMAP3430_EN_CSI2				(1 << 1)
> > +#define OMAP3430_EN_CSI2_SHIFT				1
> >  
> >  /* CM_ICLKEN_CAM specific bits */
> > 
> > --
> > 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
> > 
> 
> 
> - Paul
> --
> 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-05 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-03 16:30 [RESEND 3][PATCH] Adding csi2_fck declaration to clock34xx.h Aguirre Rodriguez, Sergio Alberto
2008-09-05  6:03 ` Paul Walmsley
2008-09-05 17:04   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox