From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-tul01m020-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RxaxT-0005ty-Gu for barebox@lists.infradead.org; Wed, 15 Feb 2012 09:15:31 +0000 Received: by obcuz6 with SMTP id uz6so1417782obc.36 for ; Wed, 15 Feb 2012 01:15:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Kamel BOUHARA Date: Wed, 15 Feb 2012 10:15:05 +0100 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7910352842669413665==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: iMX27 clock settings To: barebox@lists.infradead.org --===============7910352842669413665== Content-Type: multipart/alternative; boundary=e89a8fb1ef48ddf64e04b8fd2655 --e89a8fb1ef48ddf64e04b8fd2655 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Igor, What revision of imx27 silicon do you have? If it's a rev2.0 or 2.1, you shoult take a look a the freescale errata in order to set your PLL properly. Regards. 2012/2/14 Igor Trevisan > 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=3D0x33F38107 > while Barebox does: > writel(0x33F30307 | CSCR_MPLL_RESTART | CSCR_SPLL_RESTART, CSCR) > That brings to CSR=3D0x33F30307 at the end of the PLLs restart procedure. > > Reading the Manual I can see that the differences between the two setting= s > 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=FF" > > 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 > --=20 _______________________________ *Kamel BOUHARA* 62 Bis Rue Carnot 60610 Lacroix Saint-Ouen Tel n=B01: +33634677323 n=B02: +33617832904 --e89a8fb1ef48ddf64e04b8fd2655 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Igor,

What revision of imx27 silicon do you have?
If it's a rev2.0 or 2.1, you shoult take a look a the freescale = errata in order to set your PLL properly.

Regards.

2012/2/14 Igor Trevisan &l= t;igt1972@gmail.com>
=
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...<= br> 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:
=A0 =A0 =A0 =A0CSR=3D0x33F38107
while Barebox does:
=A0 =A0 =A0 =A0writel(0x33F30307 | CSCR_MPLL_RESTART | CSCR_SPLL_RESTART, = CSCR)
That brings to CSR=3D0x33F30307 at the end of the PLLs restart procedure.
Reading the Manual I can see that the differences between the two settings<= br> 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&qu= ot;?

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=FF"

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<= /a>
http://lists.infradead.org/mailman/listinfo/barebox



--

_______= ________________________
Kamel BOUHARA
62 Bis Rue Carnot
60610 Lacroix Sai= nt-Ouen

Tel n=B01: =A0+33634677323
=A0=A0 =A0 n=B02: = =A0+33617832904


--e89a8fb1ef48ddf64e04b8fd2655-- --===============7910352842669413665== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============7910352842669413665==--