public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] PPC440GX: DDR ECC init time.
Date: Fri, 4 Sep 2009 15:13:35 +0200	[thread overview]
Message-ID: <200909041513.35148.sr@denx.de> (raw)
In-Reply-To: <4CD35CD1F8085945B597F80EEC8942130348D9E7@exc01.bk.prodrive.nl>

Hi Wouter,

On Friday 04 September 2009 15:06:52 Wouter Eckhardt wrote:
> > 2009.03 is already "old". I suggest you use the 2009.09 release.
> 
> Okay, shouldn't be too much trouble. (You actually meant .08, right? :-)

Of course. :)
 
> > d-cache is the solution.
> 
> That's what I thought as well. Seems that coming up with the solution
> was a bit easier than actually implementing it...
> 
> > Did you flush the caches? You need to be careful here, when changing
> > TLB attributes.
> >
> > Which DDR2 init code are you using btw? A specific custom code with
> > fixed
> > settings? Or the 4xx common SPD code? I suggest you take a look at the
> > common
> > DDR2 code (44x_spd_ddr2.c). ECC handling is done there already with
> > caches enabled. This should give you an idea.
> 
> I didn't flush the cache (seemed a bit pointless since they're not in
> use at that point anyway, right?). I'll give it a whirl. I'll also look
> into the other ECC initialization.

Good.
 
> I actually thought ECC initialization was only done in sdram.c (after a
> quick search for CONFIG_SDRAM_ECC). That probably also answers your next
> question. My SDRAM initialization is the same one as is used for the
> ALPR board and that uses the common code, as far as I know.

Right. After looking at it, the ECC init is done in this common file. But the 
cache handling is missing here. I suggest you try to port this stuff from the 
DDR2 init file I mentioned in my last mail.
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

  reply	other threads:[~2009-09-04 13:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 12:34 [U-Boot] PPC440GX: DDR ECC init time Wouter Eckhardt
2009-09-04 12:50 ` Stefan Roese
2009-09-04 13:06   ` Wouter Eckhardt
2009-09-04 13:13     ` Stefan Roese [this message]
2009-09-07 13:57       ` Wouter Eckhardt
2009-09-07 14:23         ` Stefan Roese
2009-09-08  9:19           ` Felix Radensky
2009-09-08  9:49             ` Stefan Roese
2009-09-08 10:05               ` Felix Radensky
2009-09-08 11:04                 ` Stefan Roese
2009-09-08 15:19               ` Grant Erickson

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=200909041513.35148.sr@denx.de \
    --to=sr@denx.de \
    --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