mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* iMX27 clock settings
@ 2012-02-14 15:10 Igor Trevisan
  2012-02-15  9:15 ` Kamel BOUHARA
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Igor Trevisan @ 2012-02-14 15:10 UTC (permalink / raw)
  To: barebox

Hi,

I'm working on a custom board based on iMX27L. Initially I worked with Redboot
as Linux bootloader but now, I'm happily working with Barebox (2012.01.0)
having replaced Redboot with it.

Everithing is fine (thanks to the guys in the list for helping me!) but...
I noticed that my Linux apps run more slowly within my system if it's
started by Barebox
then if it's started by Redbbot.
I think it's a matter of internal clocks settings.

I see that Redboot, for example, set:
        CSR=0x33F38107
while Barebox does:
	writel(0x33F30307 | CSCR_MPLL_RESTART | CSCR_SPLL_RESTART, CSCR)
That brings to CSR=0x33F30307 at the end of the PLLs restart procedure.

Reading the Manual I can see that the differences between the two settings
mean having an arm_clk that is 2/3 and an AHB_clk that's the half.

Is there a particular reason for having these "slower configuration"?

I tried to change the lowlevel_init.S to force 0x33F38107 into CSCR
at startup but, after that change, my board starts, has time to write
somenthing on the
serial console:

"barebox 2012.01.0-svn11070-dirty1 (Feb 14 2012 - 11:10:39)

Board: Freescale iÿ"

and then restarts... continuously.

Can anybody help me to understand this and to make (if possible) my
system faster?
Thanks in advance,
Igor


-- 
"Don't find fault, find a remedy."
(Henry Ford)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-02-15 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 15:10 iMX27 clock settings Igor Trevisan
2012-02-15  9:15 ` Kamel BOUHARA
2012-02-15 11:10   ` Igor Trevisan
2012-02-15  9:29 ` Juergen Beisert
2012-02-15 12:09 ` Sascha Hauer
2012-02-15 14:59   ` Igor Trevisan
2012-02-15 16:06     ` Igor Trevisan

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