[U-Boot-Users] Q about automatic dram size detection in sdram_init()

Stefan Roese stefan.roese at esd-electronics.com
Thu Jul 15 10:40:19 CEST 2004


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





More information about the U-Boot mailing list