From: Jason Date: Mon, 1 Aug 2011 09:25:32 -0400 Subject: [U-Boot] [PATCH v2] arm/kirkwood: print speeds with cpu info. In-Reply-To: <20110801125300.6A7FE1673B92@gemini.denx.de> References: <1312160667-14248-1-git-send-email-u-boot@lakedaemon.net> <20110801125300.6A7FE1673B92@gemini.denx.de> Message-ID: <20110801132532.GG20071@titan.lakedaemon.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 01, 2011 at 02:53:00PM +0200, Wolfgang Denk wrote: > Dear Jason Cooper, > > In message <1312160667-14248-1-git-send-email-u-boot@lakedaemon.net> you wrote: > > If CONFIG_DISPLAY_CPUINFO is enabled on kirkwood SoCs, this will print the > > speeds of the various components. > > > > Signed-off-by: Jason Cooper > > --- > > Changes since v1: > > - optimized macros to remove one-timers > > - reduced switch/case to if/else since it operates on one bit. > > - remove RFC > > > > arch/arm/cpu/arm926ejs/kirkwood/cpu.c | 41 ++++++++++++++++++++++++++++++ > > arch/arm/include/asm/arch-kirkwood/cpu.h | 1 + > > 2 files changed, 42 insertions(+), 0 deletions(-) > ... > > + printf("CPU running @ %dMHz L2 running @ %dMHz\n", > > + cpu_clk, l2_clk); > > + printf("SysClock = %dMHz, TClock = %dMHz\n", > > + sys_clk, t_clk / 1000000); > > Please do NOT print such information as part of the regular, > unconditionally printed boot messages. Is CONFIG_DISPLAY_CPUINFO always set? A quick grep / wc -l of include/configs/*.h shows 64 enabled out of 590 files. > We want to keep thes einformatiove, but otherwise as short as > possible. Agreed. > I recommend to use the "clock" command to print such information then > the user is free to decide if he wants to see this, or not. Interesting. Let me know if CONFIG_DISPLAY_CPUINFO satisfies your concerns. If not, I'll be happy to add this to 'clock'. thx, Jason.