mx28: Show CPU frequency
authorFabio Estevam <festevam@gmail.com>
Sun, 22 Jan 2012 16:38:08 +0000 (16:38 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 12 Feb 2012 09:11:26 +0000 (10:11 +0100)
Showing CPU frequency during boot is useful information.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/arm926ejs/mx28/mx28.c

index da903605a2ba5ca5e49d5955ce7de8526535e748..683777f50cf6e4612cf24da532469063494f52ac 100644 (file)
@@ -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