[PATCH 07/13] omap3: allow enabling clocks for UART3, MMC1 and SPI

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Aug 21 08:15:26 EDT 2012


On 09:08 Tue 21 Aug     , Jan Luebbe wrote:
> On Mon, Aug 20, 2012 at 04:47:55PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 16:20 Mon 20 Aug     , Jan Luebbe wrote:
> > > --- a/arch/arm/mach-omap/omap3_clock.c
> > > +++ b/arch/arm/mach-omap/omap3_clock.c
> > > @@ -679,11 +679,26 @@ static void per_clocks_enable(void)
> > >  	sr32(CM_REG(FCLKEN1_CORE), 13, 1, 0x1);
> > >  	sr32(CM_REG(ICLKEN1_CORE), 13, 1, 0x1);
> > >  #endif
> > > +#ifdef CONFIG_OMAP_CLOCK_UART3
> > > +	/* Enable UART3 clocks */
> > > +	sr32(CM_REG(FCLKEN_PER), 11, 1, 0x1);
> > > +	sr32(CM_REG(ICLKEN_PER), 11, 1, 0x1);
> > > +#endif
> > >  #ifdef CONFIG_OMAP_CLOCK_I2C
> > >  	/* Turn on all 3 I2C clocks */
> > >  	sr32(CM_REG(FCLKEN1_CORE), 15, 3, 0x7);
> > >  	sr32(CM_REG(ICLKEN1_CORE), 15, 3, 0x7);	/* I2C1,2,3 = on */
> > >  #endif
> > > +#ifdef CONFIG_OMAP_CLOCK_MMC1
> > no ifdef anymore
> > 
> > please use if (IS_ENABLE())
> 
> Ok. I thought IS_ENABLE was only available in next. I need this stack to work
> on v2012.09, so I avoided it.
> 
> Will change it for the next version.
for mainline must

Best Regards,
J.



More information about the barebox mailing list