From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matej Kupljen Date: Thu, 12 May 2005 10:15:36 +0200 Subject: [U-Boot-Users] memory probe In-Reply-To: <20050511205618.99D50C1512@atlas.denx.de> References: <20050511205618.99D50C1512@atlas.denx.de> Message-ID: <1115885736.9698.2.camel@orionlinux.starfleet.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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