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