From: Wolfgang Denk Date: Wed, 17 Sep 2014 16:11:46 +0200 Subject: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes In-Reply-To: <1410952049.7769.11.camel@clsee-VirtualBox.altera.com> References: <1410779188-6880-1-git-send-email-marex@denx.de> <201409162355.22221.marex@denx.de> <5418B9E2.60008@opensource.altera.com> <201409170152.07485.marex@denx.de> <1410952049.7769.11.camel@clsee-VirtualBox.altera.com> Message-ID: <20140917141146.1CB643822F5@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 Chin Liang See, In message <1410952049.7769.11.camel@clsee-VirtualBox.altera.com> you wrote: > > Hmmm... actually I can get it works well for my Altera dev kit. The > get_dram_size would take in the argument PHYS_SDRAM_1_SIZE. From here, > the function will ensure the memory specified can read and writable. If > its failing here, probably the SDRAM access might have issue. FYI, > PHYS_SDRAM_1_SIZE is 0x40000000 for 1GB. Normally, get_dram_size() would be called with a size argument that is _larger_ (twice as big) as the biggest possible memory configuration on the respective device. Otherwise it can only detect smaller memory sizes, but would fail to detect if a bigger memory device is installed by accident. 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 "Have you lived in this village all your life?" "No, not yet."