From: Wolfgang Denk Date: Sun, 22 Sep 2013 15:50:03 +0200 Subject: [U-Boot] How do ARM platform initialize DDR? In-Reply-To: References: <52387C5C.8010504@freescale.com> Message-ID: <20130922135003.88C223831F6@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 Timur, In message you wrote: > On Tue, Sep 17, 2013 at 10:59 AM, York Sun wrote: > > I am wondering if there is generic > > DDR driver used by many ARM platforms, like the one we have for > > powerpc/mpc85xx SoCs. > > Sadly, no such thing exists. There is no generic DDR controller for > ARM. I'm working on DDR controller support for our ARM chips, and > it's nowhere near as elegant as Freescale's PowerPC parts. In our MPC85xx is just one family of processors. And I don't think you really want to claim that all Freescale's PowerPC processors use the same memory controller? Try and compare the memory controllers (and the required initialization sequences) for just a selection of MPC8xx, MPC82xx, MPC83xx, MPC85xx. And even if some parts use the same IP block, usually the register interfaces to it are sufficiently different to make common code a challenge at least (compare MPC5121 and MPC5125). Yes, some of the later modes share more common IP blocks, but PowerPC is in no way better than ARM in this respect - the difference is only, that there are way more different ARM SoCs than there ver have been PPC ones, so the problems become more visible. 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 A man is not complete until he is married -- then he is finished.