[U-Boot] [PATCH] mx28: Show CPU frequency

Stefano Babic sbabic at denx.de
Tue Jan 24 09:36:28 CET 2012


On 23/01/2012 03:38, Fabio Estevam wrote:
> Showing CPU frequency during boot is useful information.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  arch/arm/cpu/arm926ejs/mx28/mx28.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c b/arch/arm/cpu/arm926ejs/mx28/mx28.c
> index da90360..683777f 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/mx28.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/mx28.c
> @@ -169,7 +169,8 @@ int arch_cpu_init(void)
>  #if defined(CONFIG_DISPLAY_CPUINFO)
>  int print_cpuinfo(void)
>  {
> -	printf("Freescale i.MX28 family\n");
> +	printf("Freescale i.MX28 family at %d MHz\n",
> +			mxc_get_clock(MXC_ARM_CLK) / 1000000);
>  	return 0;
>  }
>  #endif

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list