From: Peter Korsgaard <jacmet@sunsite.dk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH, REGRESSION] mpc83xx: provide option to set LCRR early
Date: Sat, 05 Dec 2009 21:27:30 +0100 [thread overview]
Message-ID: <87ocmdqi8d.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <20091204203059.2d063610.kim.phillips@freescale.com> (Kim Phillips's message of "Fri, 4 Dec 2009 20:30:59 -0600")
>>>>> "Kim" == Kim Phillips <kim.phillips@freescale.com> writes:
Kim> On Fri, 20 Nov 2009 12:42:43 +0100
Kim> Peter Korsgaard <jacmet@sunsite.dk> wrote:
>> E.G. on a 8347 board a bootup time increase of ~600ms has been observed:
Kim> heh, even more on an 8313! Thanks for this - I hadn't realized the
Kim> difference was so large (or neglected it since the move to init_r was
Kim> done at the last moment).
OK, why exactly was it moved? What do you want to protect against? I
don't remember seing anyone complaining about the old location.
>> Fix it by introducing CONFIG_SYS_LCRR_EARLY, and set LCRR in cpu_init_f
>> instead of in cpu_init_r if set.
Kim> instead of introducing the new CONFIG_SYS_LCRR_EARLY, shouldn't we
Kim> check for something like:
Kim> !defined(CONFIG_NAND_SPL) && !defined(CONFIG_SYS_RAMBOOT)
As in do the reconfig early if we're running from RAM right away?
It's not that simple - I have a board which boots from NOR flash. As
that is an async device there isn't any problem in changing the LBC
settings while you're running from flash (as long as you respect the
min access time). I have another design where the flash sits behind a
FPGA (for signal integrity reasons), and there I have to wait until
we're running in RAM before changing the LBC clock.
On the 2nd design I even have to tell the FPGA to resync (through a GPIO
pin) and wait a bit before I can continue, so I'm doing the LCRR config
in board code (in board_early_init_r). The move to cpu_init_r broke that
as well as the LCRR value is overwritten there.
Kim> btw, this generates:
Kim> cpu_init.c: In function 'cpu_init_r':
Kim> cpu_init.c:367: warning: unused variable 'im'
Ups, I'll fix that and send a new patch once we agree on the form.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2009-12-05 20:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-20 11:42 [U-Boot] [PATCH, REGRESSION] mpc83xx: provide option to set LCRR early Peter Korsgaard
2009-11-27 9:06 ` Peter Korsgaard
2009-12-05 0:29 ` Wolfgang Denk
2009-12-05 0:51 ` Kim Phillips
2009-12-05 0:52 ` Wolfgang Denk
2009-12-05 2:30 ` Kim Phillips
2009-12-05 20:27 ` Peter Korsgaard [this message]
2009-12-07 17:12 ` Kim Phillips
2009-12-07 21:10 ` Peter Korsgaard
2009-12-07 21:38 ` Kim Phillips
2009-12-07 21:46 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ocmdqi8d.fsf@macbook.be.48ers.dk \
--to=jacmet@sunsite.dk \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox