public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <stefan.roese@esd-electronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PPC4xx: SDRAM detection (bug?)
Date: Mon, 29 Nov 2004 17:51:46 +0100	[thread overview]
Message-ID: <03ec01c4d633$b6357790$0212000a@PCSTEFAN> (raw)
In-Reply-To: <6.0.1.1.0.20041125192534.01fb0e08@192.168.2.1>

Hi Llandre,

Sorry if I jump into this thread this late!

> I have a question about SDRAM detection code (cpu/ppc4xx/sdram.c).
> I tested it with the following configurations:
> Configuration #1: 32 MB (2 chips), SDRAM clk = 133 MHz
> Configuration #2: 32 MB (2 chips), SDRAM clk = 111 MHz
> and everything worked fine.
> 
> Then I tried the following:
> Configuration #3: 64 MB (2 chips), SDRAM clk = 111 MHz
> and the SDRAM does not work. U-Boot executes fine until it 
> jumps to SDRAM
> after relocation.
> In this case, two chips K4S561632E-TI75 have been used.
> In my understanding the default value (0x07f00000) for the 
> RTR register
> is wrong because these chips have a 64 ms/8k cycle refresh.
> Thus this register should be 0x03780000. I tried to change it
> but SDRAM did not work anyway. I suspect it is necessary to fix
> the TR register too or that the value for RTR is wrong.
> Any suggestions/remarks?

Yes, you are right: There seems to be a problem with the refresh counter
intialization in the sdram.c code (I am not referencing the spd_sdram.c
code here!). But I am not sure that this explains why U-Boot is not
running on your board with the 256mbit chips. We are running this code
on our board with all kind of sdram's (64mbit, 128mbit, 256mbit and even
512mbit) without any known problems. The 256mbit chips we use right now
are the Micron MT48LC16M16A2-7E.

But again there seems to be a problem which needs to be fixed. I can put
this on my list or you could send a patch! ;-)

Best regards,
Stefan

  parent reply	other threads:[~2004-11-29 16:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25 18:42 [U-Boot-Users] PPC4xx: SDRAM detection (bug?) llandre
2004-11-25 23:33 ` Roger Larsson
2004-11-26  0:08   ` Wolfgang Denk
2004-11-26 18:26   ` llandre
2004-11-27 23:09     ` Andrew E. Mileski
2004-11-28  9:19       ` Wolfgang Denk
2004-11-28 22:29         ` Andrew E. Mileski
2004-11-28 22:48           ` Wolfgang Denk
2004-11-28 23:27             ` Andrew E. Mileski
2005-04-05 23:38               ` Wolfgang Denk
2004-11-29 16:51 ` Stefan Roese [this message]
2004-11-30 11:03   ` llandre

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='03ec01c4d633$b6357790$0212000a@PCSTEFAN' \
    --to=stefan.roese@esd-electronics.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