From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 22 Nov 2011 15:07:32 +0100 Subject: [U-Boot] [PATCH 3/9] openrisc: Add cpu files In-Reply-To: <20111122071707.GB7696@chokladfabriken.org> References: <1321680098-31121-1-git-send-email-stefan.kristiansson@saunalahti.fi> <201111220546.41715.marek.vasut@gmail.com> <20111122071707.GB7696@chokladfabriken.org> Message-ID: <201111221507.32945.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > On Tue, Nov 22, 2011 at 05:46:41AM +0100, Marek Vasut wrote: > > > On Mon, Nov 21, 2011 at 11:50:17PM +0100, Marek Vasut wrote: > > > > > + printf("CPU: OpenRISC-%x00 (rev %d) @ %d MHz\n", > > > > > + ver, rev, (CONFIG_SYS_CLK_FREQ / 1000000)); > > > > > > > > The CPU won't tell you it's speed ? > > > > > > Nope. > > > > That's weird, how do you calibrate delay then, using static setup ? > > You mean in Linux? CPU freq is passed in via the device tree. I mean in u-boot, it seems weird for the CPU to be unable to tell you how fast it runs. M