Dear "V, Aneesh", In message <ff55437e1f14da4baeb721a458b6701706fca3b...@dbde02.ent.ti.com> you wrote: > > 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().
If you have to deal with boards which may come with different memory sizes, these may need different initializations. I don't know your hardware - you may or may not be able to read the needed configuration from the hardware. Eventually you need to try out different configurations, in which case the SDRAM initialization has to be part of the RAM initialization code (as it has to be retried for each possible configuration). 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: w...@denx.de "I knew then (in 1970) that a 4-kbyte minicomputer would cost as much as a house. So I reasoned that after college, I'd have to live cheaply in an apartment and put all my money into owning a computer." - Apple co-founder Steve Wozniak, EE Times, June 6, 1988, pg 45 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot