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] Q about automatic dram size detection in sdram_init()
Date: Thu, 15 Jul 2004 10:40:19 +0200	[thread overview]
Message-ID: <001801c46a47$5c2ea6c0$0212000a@PCSTEFAN> (raw)
In-Reply-To: <20040715075508.AAFB5C109F@atlas.denx.de>

Wolfgang!

> > The code works fine on all different memory configutations. This is
> > because of the mirroring of the written values. For example 
> on a system
> > with 64MByte SDRAM a write to "ADDR_64MB" will mirror to one of the
> > smaller addresses and the current test will fail! So this 
> is perfectly
> > OK.
> 
> If you have a 64MB system, I'd  expect  that  a  write  to  ADDR_64MB
> succeeds?

The memory controller is previously setup to 128MB. So a write to 64MB
is OK, and _will_ be mirrored to a lower address on a 64MB system!

I agree that the code is pretty ugly and I am thinking about reworking
it.

Best regards,
Stefan Roese

  reply	other threads:[~2004-07-15  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-15  1:00 [U-Boot-Users] Q about automatic dram size detection in sdram_init() "SYLee"
2004-07-15  7:30 ` Stefan Roese
2004-07-15  7:55   ` Wolfgang Denk
2004-07-15  8:40     ` Stefan Roese [this message]
2004-07-15  7:35 ` Wolfgang Denk

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='001801c46a47$5c2ea6c0$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