public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: pxa: config option for PXA270 turbo mode
@ 2013-05-20 21:44 Sergey Yanovich
  2013-05-21 10:35 ` Marek Vasut
  0 siblings, 1 reply; 15+ messages in thread
From: Sergey Yanovich @ 2013-05-20 21:44 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/cpu/pxa/pxa2xx.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c
index 09e8177..6c918ac 100644
--- a/arch/arm/cpu/pxa/pxa2xx.c
+++ b/arch/arm/cpu/pxa/pxa2xx.c
@@ -32,6 +32,10 @@
 #include <common.h>
 #include <asm/arch/pxa-regs.h>
 
+#ifndef CONFIG_SYS_CLKCFG
+#define CONFIG_SYS_CLKCFG	0x00000002
+#endif
+
 /* Flush I/D-cache */
 static void cache_flush(void)
 {
@@ -244,7 +248,8 @@ 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"(CONFIG_SYS_CLKCFG));
 
 	/* enable the 32Khz oscillator for RTC and PowerManager */
 	writel(OSCC_OON, OSCC);
-- 
1.7.10.4

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

end of thread, other threads:[~2013-05-21 20:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20 21:44 [U-Boot] [PATCH] arm: pxa: config option for PXA270 turbo mode Sergey Yanovich
2013-05-21 10:35 ` Marek Vasut
2013-05-21 10:51   ` Sergey Yanovich
2013-05-21 10:55     ` Marek Vasut
2013-05-21 11:14       ` Sergey Yanovich
2013-05-21 11:22         ` Marek Vasut
2013-05-21 11:22           ` Marek Vasut
2013-05-21 16:23             ` Sergey Yanovich
2013-05-21 19:25               ` Marek Vasut
2013-05-21 19:45                 ` Sergey Yanovich
2013-05-21 19:49                 ` Sergey Yanovich
2013-05-21 19:58                   ` Marek Vasut
2013-05-21 20:00                     ` Sergey Yanovich
2013-05-21 20:09                       ` Marek Vasut
2013-05-21 11:42           ` Sergey Yanovich

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