
On 09/26/2010 03:39 AM, V, Aneesh wrote:
Hi Nishanth
-----Original Message----- From: u-boot-bounces@lists.denx.de [mailto:u-boot- bounces@lists.denx.de] On Behalf Of Nishanth Menon Sent: Saturday, September 25, 2010 8:30 PM To: Steve Sakoman Cc: u-boot@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 Vaneesh@ti.com
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