From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 05 Oct 2007 14:47:49 +0200 Subject: [U-Boot-Users] [PATCH 4/6] TQM885D: use calculated cpuclk instead of measuring it In-Reply-To: Your message of "Fri, 05 Oct 2007 13:59:01 +0200." <47F3F98010FF784EBEE6526EAAB078D1024F874D@tq-mailsrv.tq-net.de> Message-ID: <20071005124749.94B13245B2@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 <47F3F98010FF784EBEE6526EAAB078D1024F874D@tq-mailsrv.tq-net.de> you wrote: > > > Ummm.. it may not be strictly necessary - but does it hurt? Or is it > > not working? > > To make it work, changes in /cpu/mpc8xx/speed.c would be necessary. I > send a patch some weeks ago ("TQM885D: Use the OSCM,feeded by EXTAL =3D > 10 MHz"), which wasn't accepted, because board specific code is > not allowed in this file. I asked you to change it in a way that is not board specific, but feature-specific. > Since we only have one quartz on the TQM885D, we could not do > reference measurements like on the other TQM8xx boards (which have > two independent external clock sources). So Measuring the clock with > the PIT will produce the same result as calculating the clock from > the PLL register values. So it's not working at all and cannot be fixed. So drop it. > Another point is, that older TQM885D boards use EXTCLK as clock > source and newer versions EXTAL. If the cpuclk is calculated, > the same u-boot Image could be used for the older and the newer > board versions. If cpuclk is measured two different U-Boot images > would be necessary. Understood. 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 It would seem that evil retreats when forcibly confronted -- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5