From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Date: Sun, 26 Sep 2010 07:36:31 -0500 Subject: [U-Boot] [PATCH] ARMV7: OMAP4: Calculate SDRAM size In-Reply-To: References: <1285276376.21276.30.camel@quadra> <4C9E0E7E.7090900@gmail.com> Message-ID: <4C9F3E4F.3040403@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/26/2010 03:39 AM, V, Aneesh wrote: > Hi Nishanth > >> -----Original Message----- >> From: u-boot-bounces at lists.denx.de [mailto:u-boot- >> bounces at lists.denx.de] On Behalf Of Nishanth Menon >> Sent: Saturday, September 25, 2010 8:30 PM >> To: Steve Sakoman >> Cc: u-boot at lists.denx.de >> Subject: Re: [U-Boot] [PATCH] ARMV7: OMAP4: Calculate SDRAM size >> >> On 09/23/2010 04:12 PM, Steve Sakoman wrote: >>> From: Aneesh V >>> >>> Calculate the SDRAM size from DMM configuration registers instead >> of using >>> hard-coded values. This gives correct values for all different >> boards. >>> >>> It's assumed that DMM sections do not overlap memory areas. >> >> How do we handle NOR boot? is it assumed that the configuration will >> be >> done way befor the sdram_init? >> > > I think you are referring to SDRAM initialization. Yes, it is assumed > that SDRAM initialization(at least the DMM part of it) is done before > the call to sdram_size(). The right location for this seems > to be the initial part of sdram_init(). thanks for the clarification.. NOR boot is usually going to have initial part in XIP -> we'd traditionally relocate to SDRAM before the call to sdram_size() happens. Regards, Nishanth Menon