From: Wolfgang Denk Date: Mon, 27 Sep 2010 11:02:48 +0200 Subject: [U-Boot] [PATCH] ARMV7: OMAP4: Calculate SDRAM size In-Reply-To: References: <1285276376.21276.30.camel@quadra> <4C9E0E7E.7090900@gmail.com> <4C9F3E4F.3040403@gmail.com> <20100926143707.AFC3E134F52@gemini.denx.de> Message-ID: <20100927090248.63B4E153651@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 "V, Aneesh", In message you wrote: > > > SDRAM configuration must be done while still running from NOR, i. e. > > before relocation. Only then free reconfiguration, auto-sizing etc. > > is > > possible. > > We shall rework the patch to do SDRAM size calculation as part of > 'lowlevel_init' that is called before relocation. I hope that should > solve the problem. No. This is not where it belongs. RAM initialization is done by the dram_init() function, which is an entry in the init_sequence[] array; see arch/arm/lib/board.c > Please note that we are always running from SDRAM because none of > the OMAP4 boards so far have any XIP device. I see. 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 Digital computers are themselves more complex than most things people build: They have very large numbers of states. This makes conceiving, describing, and testing them hard. Software systems have orders-of- magnitude more states than computers do. - Fred Brooks, Jr.