[U-Boot-Users] memory probe

Matej Kupljen
2005-05-11T18:31:41Z

Hi

> what if we want same image to work on 2 different memory configuration
> hardware ?

We had such board. One with 32MB and other with 64MB of SDRAM.
We used DIP switches, which were read early in a U-Boot, in
memsetup.S. On the position of this DIP switch we then decided
which path in the mesetup.S to take.
Then, in out dram_init function for our board, we again read the
DIP switch and decide what to report as DRAM size.

BR,
Matej