From: Steve Sakoman <steve@sakoman.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARMV7: OMAP4: Calculate SDRAM size
Date: Mon, 27 Sep 2010 14:17:57 -0700 [thread overview]
Message-ID: <1285622277.4705.43.camel@quadra> (raw)
In-Reply-To: <20100927090248.63B4E153651@gemini.denx.de>
On Mon, 2010-09-27 at 11:02 +0200, Wolfgang Denk wrote:
> Dear "V, Aneesh",
>
> In message <FF55437E1F14DA4BAEB721A458B6701706FCA3B8E5@dbde02.ent.ti.com> you wrote:
> >
> > > SDRAM configuration must be done while still running from NOR, i. e.
> > > before relocation. Only then free reconfiguration, auto-sizing etc.
> > > is
> > > possible.
> >
> > We shall rework the patch to do SDRAM size calculation as part of
> > 'lowlevel_init' that is called before relocation. I hope that should
> > solve the problem.
>
> No. This is not where it belongs. RAM initialization is done by the
> dram_init() function, which is an entry in the init_sequence[] array;
> see arch/arm/lib/board.c
>
> > Please note that we are always running from SDRAM because none of
> > the OMAP4 boards so far have any XIP device.
>
> I see.
I fear that all this discussion of what might happen someday with a XIP
NOR implementation on OMAP4 may have distracted from the consideration
of this patch for a real problem on today's hardware! The current Panda
implementation returns an incorrect value for system ram size.
The subject patch does indeed set the ram size properly in the OMAP4
specific dram_init() function. As Wolfgang says above, this is the
proper place. If there are no other objections we should try to get
this integrated.
Regards,
Steve
next prev parent reply other threads:[~2010-09-27 21:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 21:12 [U-Boot] [PATCH] ARMV7: OMAP4: Calculate SDRAM size Steve Sakoman
2010-09-25 15:00 ` Nishanth Menon
2010-09-25 22:34 ` Wolfgang Denk
2010-09-26 2:37 ` Steve Sakoman
2010-09-26 8:39 ` V, Aneesh
2010-09-26 8:52 ` Wolfgang Denk
2010-09-26 12:36 ` Nishanth Menon
2010-09-26 14:37 ` Wolfgang Denk
2010-09-26 14:57 ` Steve Sakoman
2010-09-26 15:28 ` Nishanth Menon
2010-09-27 6:32 ` V, Aneesh
2010-09-27 9:00 ` V, Aneesh
2010-09-27 9:02 ` Wolfgang Denk
2010-09-27 21:17 ` Steve Sakoman [this message]
2010-09-27 21:37 ` Wolfgang Denk
2010-09-27 21:41 ` Steve Sakoman
2010-09-28 17:42 ` Wolfgang Denk
2010-09-28 17:52 ` Paulraj, Sandeep
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=1285622277.4705.43.camel@quadra \
--to=steve@sakoman.com \
--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