
Dear =?ISO-8859-1?Q?Eric_B=E9nard?=,
In message 4A5F20DB.2000009@eukrea.com you wrote:
How about using get_ram_size() for auto-sizing and testing?
the RAM needs to be properly initialized in low level before being able to test it so its geometry (rom/columns) and timings must be known before being able to detect its size using get_ram_size.
Indeed. That's the same on all board - including the many that successfully use get_ram_size()
I'm not sure it's possible to use a generic geometry/timings there else u-boot may never relocate. How would you do this ?
Well, normally you have 2 or 3 row/col combinations that have to be considered; you try these in turn until you find one where get_ram_size() returns a non-zero size; if several work, you use that which returns the biggest size.
See for example "board/tqc/tqm8xx/tqm8xx.c" - it tries 8, 9 and 10 column mode...
Best regards,
Wolfgang Denk