From: Wolfgang Denk Date: Mon, 28 Apr 2008 23:27:41 +0200 Subject: [U-Boot-Users] [PATCH v2] PPC405EX(r) ECC and SDRAM Initialization Clean-ups In-Reply-To: Your message of "Mon, 28 Apr 2008 09:53:55 PDT." <1209401636-9846-1-git-send-email-gerickson@nuovations.com> Message-ID: <20080428212741.B6CE0248A6@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 In message <1209401636-9846-1-git-send-email-gerickson@nuovations.com> you wrote: > The primary goal of these changes is to unify some of the low-level > SDRAM and ECC initialization code for the PPC4xx processors that use a > common DDR2 SDRAM controller. > > In particular, in the case of the 405EX[r], it must initialize SDRAM > before a primordial stack is available since OCM doesn't exist and the > data cache does not work for such a purpose. As a consequence, the ECC > (and SDRAM) initialization code must be stack-free. Stefan already asked this... I would also like to understand why the data cache cannot be used for initial RAM as we do on so many other systems? I hesitate to throw away good C code in favour of hard to read, hard to maintain assembly, especially if this also breaks with some of the U-Boot design principles. > --- > board/amcc/kilauea/init.S | 53 +++++++++++-- > board/amcc/makalu/init.S | 53 +++++++++++-- > cpu/ppc4xx/Makefile | 1 + > cpu/ppc4xx/ecc.S | 195 +++++++++++++++++++++++++++++++++++++++++++++ > cpu/ppc4xx/sdram.c | 47 +---------- > 5 files changed, 292 insertions(+), 57 deletions(-) There are coding style violations: C++ comments, trailing white space, indentation not consequently by TABs. 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 Chapter 1 -- The story so far: In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.