[U-Boot-Users] memory probe

Matej Kupljen matej.kupljen at ultra.si
Thu May 12 11:06:07 CEST 2005


Hi

> > to properly initialise SDRAM. You can use this code only to report
> > the memory size to U-Boot and the Linux.
> 
> No, this code is used to ADJUST the memory controller to  the  actual
> sizes found on the board - you start with a preliminary configuration
> of  the  memory  controller which assumes that all possible banks are
> fitted with the maximum amountof memory; then you run  get_ram_size()
> on  all  of these banks, disable those where a size of 0 is reported,
> and adjust controller settings according to the  sizes  reported  for
> the others.

I see.
But how can you determine the number of Column/Row address bits and the
number of internal SDRAM banks?
Those are the values for the registers MDCNFG for PXA255, for example.

BR,
Matej





More information about the U-Boot mailing list