
12 May
2005
12 May
'05
11:06 a.m.
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