[PATCH 07/13] omap3: allow enabling clocks for UART3, MMC1 and SPI
Jan Luebbe
jlu at pengutronix.de
Tue Aug 21 03:08:41 EDT 2012
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.
Thanks,
Jan
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list