From: Wolfgang Denk Date: Thu, 27 May 2010 22:59:34 +0200 Subject: [U-Boot] [PATCH] powerpc: add support for the Freescale P1022DS reference board In-Reply-To: <4BFED01F.1040703@freescale.com> References: <1274392909-16422-1-git-send-email-timur@freescale.com> <20100520223324.50594CCF026@gemini.denx.de> <4BFC1736.5030902@freescale.com> <20100526201014.97886EAC238@gemini.denx.de> <4BFD837D.2040508@freescale.com> <20100527070235.E8812EAC238@gemini.denx.de> <4BFE823A.1080409@freescale.com> <20100527181118.3C9F7EAC238@gemini.denx.de> <4BFEB922.9040106@freescale.com> <20100527190340.GA5915@schlenkerla.am.freescale.net> <20100527195318.71B5EEAC238@gemini.denx.de> <4BFED01F.1040703@freescale.com> Message-ID: <20100527205934.74E14EAC238@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message <4BFED01F.1040703@freescale.com> you wrote: > > > Such configurations are usually set up of from several differently > > sized banks of memory, and get_ram_size() is always run per bank. So > > as long as chip manufacturers continue to make RAM chips with > > power-of-two sizes only, everything should be fine. > > What if the board has two DIMM slots, one of which has a 1GB DIMM and the > other has a 512MB DIMM? Then you run get_ram_size() twice, and it will find 1 GiB and 512 MiB of memory - what's the problem? > I thought get_ram_size() was supposed to safely determine how much RAM is > actually in the system? Otherwise, it should be called verify_ram_size(). Indeed it is intended to determine tha actual RAM size - and does so fine in dozens of board configurations. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Why waste negative entropy on comments, when you could use the same entropy to create bugs instead?" - Steve Elias