From: Wolfgang Denk Date: Fri, 11 Jan 2008 20:38:00 +0100 Subject: [U-Boot-Users] ppc4xx: Problems running POST on PPC405GPr board In-Reply-To: Your message of "Fri, 11 Jan 2008 18:06:38 +0100." <200801111806.38846.niklausgiger@gmx.ch> Message-ID: <20080111193800.B0AAC24656@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 Niklaus, in message <200801111806.38846.niklausgiger@gmx.ch> you wrote: > > I am trying to add POST for my PPC405GPr based boards and I am running > into a few problems: > > a) the post/cpu/ppc4xx/uart.c assumed 4 UARTS. I would rather try > only as much UARTs as defined by the CPUs. Would a patch like the attached > one be considered a good solution for this problem? Nope, that's too ugly. > b) looking at the log I get ... > What would be the correct #if to exclude the IVOR part in > post/cpu/ppc4xx/spr.c, as it make no sense to test these non > existant registers on a PPC405 processor? Maybe the test should be skipped on processors that don't have it - how about testing the PVR? 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 In theory, there is no difference between theory and practice. In practice, however, there is.