From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Tue, 19 Nov 2013 10:24:15 +0200 Subject: [U-Boot] [PATCH] arm: omap3: Enable clocks for peripherals only if they are used In-Reply-To: <20131118141047.GA4145@panicking> References: <20131118141047.GA4145@panicking> Message-ID: <528B202F.3000607@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Michael, On 11/18/13 16:10, Michael Trimarchi wrote: > Enable clocks for the peripherals only if they are used > > Signed-off-by: Michael Trimarchi > --- > arch/arm/cpu/armv7/omap3/clock.c | 2 -- > arch/arm/include/asm/arch-omap3/clock.h | 2 -- > 2 files changed, 4 deletions(-) > > diff --git a/arch/arm/cpu/armv7/omap3/clock.c b/arch/arm/cpu/armv7/omap3/clock.c > index 14fc7e8..1bc27bd 100644 > --- a/arch/arm/cpu/armv7/omap3/clock.c > +++ b/arch/arm/cpu/armv7/omap3/clock.c > @@ -730,8 +730,6 @@ void per_clocks_enable(void) > sr32(&prcm_base->fclken_cam, 0, 32, FCK_CAM_ON); > sr32(&prcm_base->iclken_cam, 0, 32, ICK_CAM_ON); > } > - sr32(&prcm_base->fclken_per, 0, 32, FCK_PER_ON); > - sr32(&prcm_base->iclken_per, 0, 32, ICK_PER_ON); Hmmm... Am I missing something or is this change breaks boards that currently rely on the peripheral clocks being enabled here? > > sdelay(1000); > } > diff --git a/arch/arm/include/asm/arch-omap3/clock.h b/arch/arm/include/asm/arch-omap3/clock.h > index be669c1..1912cc9 100644 > --- a/arch/arm/include/asm/arch-omap3/clock.h > +++ b/arch/arm/include/asm/arch-omap3/clock.h > @@ -27,8 +27,6 @@ > #define ICK_DSS_ON 0x00000001 > #define FCK_CAM_ON 0x00000001 > #define ICK_CAM_ON 0x00000001 > -#define FCK_PER_ON 0x0003ffff > -#define ICK_PER_ON 0x0003ffff > > /* Used to index into DPLL parameter tables */ > typedef struct { > -- Regards, Igor.