[U-Boot-Users] memory probe

Matej Kupljen
2005-05-12T08:15:36Z

Hi

> > Then, in out dram_init function for our board, we again read the
> > DIP switch and decide what to report as DRAM size.
>
> No need to do this. If implemented correctly, U-Boot will auto-
> matically find out how big your RAM. This is what the RAM size
> detection code in common/memsize.c was made for. Just use it.

Yes, but you still need to read the DIP switch in the memsetup.S
to properly initialise SDRAM. You can use this code only to report
the memory size to U-Boot and the Linux.

BR,
Matej