From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matej Kupljen Date: Thu, 12 May 2005 11:06:07 +0200 Subject: [U-Boot-Users] memory probe In-Reply-To: <20050512084229.CA115C1512@atlas.denx.de> References: <20050512084229.CA115C1512@atlas.denx.de> Message-ID: <1115888767.9698.6.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 > > to properly initialise SDRAM. You can use this code only to report > > the memory size to U-Boot and the Linux. > > No, this code is used to ADJUST the memory controller to the actual > sizes found on the board - you start with a preliminary configuration > of the memory controller which assumes that all possible banks are > fitted with the maximum amountof memory; then you run get_ram_size() > on all of these banks, disable those where a size of 0 is reported, > and adjust controller settings according to the sizes reported for > the others. I see. But how can you determine the number of Column/Row address bits and the number of internal SDRAM banks? Those are the values for the registers MDCNFG for PXA255, for example. BR, Matej