Patchwork [U-Boot] arm: pxa: config option for PXA270 turbo mode

login
register
mail settings
Submitter Sergey Yanovich
Date May 21, 2013, 7:49 p.m.
Message ID <1369165781-16092-1-git-send-email-ynvich@gmail.com>
Download mbox | patch
Permalink /patch/245396/
State Awaiting Upstream
Delegated to: Marek Vasut
Headers show

Comments

Sergey Yanovich - May 21, 2013, 7:49 p.m.
PXA270 CPU has turbo mode. The mode is 2.5 times faster than the
default run mode. Activating the mode early significantly speeds
up boot process.

Signed-off-by: Sergey Yanovich <ynvich@gmail.com>

---
Changes for v3:
    - make the change unconditional

Changes for v2:
    - activate turbo mode and fast bus by default
---
 arch/arm/cpu/pxa/pxa2xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Marek Vasut - May 21, 2013, 7:58 p.m.
Dear Sergey Yanovich,

> PXA270 CPU has turbo mode. The mode is 2.5 times faster than the
> default run mode. Activating the mode early significantly speeds
> up boot process.
> 
> Signed-off-by: Sergey Yanovich <ynvich@gmail.com>

OK, applied. Thanks

Best regards,
Marek Vasut
Sergey Yanovich - May 21, 2013, 8 p.m.
Dear Marek Vasut,

On Tue, 2013-05-21 at 21:58 +0200, Marek Vasut wrote:
> OK, applied. Thanks

Thanks for your time, too.
Marek Vasut - May 21, 2013, 8:09 p.m.
Dear Sergey Yanovich,

> Dear Marek Vasut,
> 
> On Tue, 2013-05-21 at 21:58 +0200, Marek Vasut wrote:
> > OK, applied. Thanks
> 
> Thanks for your time, too.

hey, thanks for the patch ;-)

Best regards,
Marek Vasut

Patch

diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c
index 09e8177..67a2ce1 100644
--- a/arch/arm/cpu/pxa/pxa2xx.c
+++ b/arch/arm/cpu/pxa/pxa2xx.c
@@ -244,7 +244,7 @@  void pxa_clock_setup(void)
 {
 	writel(CONFIG_SYS_CKEN, CKEN);
 	writel(CONFIG_SYS_CCCR, CCCR);
-	asm volatile("mcr	p14, 0, %0, c6, c0, 0" : : "r"(2));
+	asm volatile("mcr	p14, 0, %0, c6, c0, 0" : : "r"(0x0b));
 
 	/* enable the 32Khz oscillator for RTC and PowerManager */
 	writel(OSCC_OON, OSCC);