From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabian Cenedese Date: Mon, 30 May 2011 11:34:02 +0200 Subject: [U-Boot] Full amount of sdram Message-ID: <5.2.0.9.1.20110530112741.04903dc0@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi I'm trying to get the full size of the sdram, not the available size as in gd->ram_size. We use a P2020 so I'm looking in the fsl_ code. I tried it with fsl_ddr_sdram_size() which from the comment should just return the size and don't do anything else. However this is already called in the u-boot code while setting up the correct parameters. Calling it a second time results in a crash in populate_memctl_options. - Should this work or do I need to skip these steps and call fsl_ddr_compute(&info, STEP_COMPUTE_REGS, 1); myself? Can I include these function? - Is there another (vendor independent) way to get the full sdram size? Thanks bye Fabi