]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
exynos: Tidy up CPU frequency display
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:16:15 +0000 (18:16 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 03:06:14 +0000 (21:06 -0600)
Line up the display with the line below, e.g.:

CPU:   Exynos5250 @ 1.7 GHz
Model: Google Spring
DRAM:  2 GiB
MMC:   EXYNOS DWMMC: 0

Also show the speed as GHz where appropriate.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv7/s5p-common/cpu_info.c

index a8d91e769fc1ddfdbf1e881bfca78d07709e6891..154d67490d4020eb41ecfd35219ab416946bc618 100644 (file)
@@ -30,11 +30,8 @@ u32 get_device_type(void)
 #ifdef CONFIG_DISPLAY_CPUINFO
 int print_cpuinfo(void)
 {
-       char buf[32];
-
-       printf("CPU:\t%s%X@%sMHz\n",
-                       s5p_get_cpu_name(), s5p_cpu_id,
-                       strmhz(buf, get_arm_clk()));
+       printf("CPU:   %s%X @ ", s5p_get_cpu_name(), s5p_cpu_id);
+       print_freq(get_arm_clk(), "\n");
 
        return 0;
 }