diff options
author | Wolfgang Denk <wd@denx.de> | 2008-10-19 00:35:49 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-21 09:25:38 (GMT) |
commit | 08ef89ecd174969b3544f3f0c7cd1de3c57f737b (patch) | |
tree | 3c4f9b6df2d712f18b25733a4648a14eea291bfe /cpu/mcf523x | |
parent | d50c7d4be150b2252c0d2e16cfcf69643bdd6dc9 (diff) | |
download | u-boot-fsl-qoriq-08ef89ecd174969b3544f3f0c7cd1de3c57f737b.tar.xz |
Use strmhz() to format clock frequencies
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mcf523x')
-rw-r--r-- | cpu/mcf523x/cpu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpu/mcf523x/cpu.c b/cpu/mcf523x/cpu.c index 1ce90fd..b9e48aa 100644 --- a/cpu/mcf523x/cpu.c +++ b/cpu/mcf523x/cpu.c @@ -60,11 +60,13 @@ int checkcpu(void) } if (id) { + char buf1[32], buf2[32]; + printf("Freescale MCF%d (Mask:%01x Version:%x)\n", id, msk, ver); - printf(" CPU CLK %d Mhz BUS CLK %d Mhz\n", - (int)(gd->cpu_clk / 1000000), - (int)(gd->bus_clk / 1000000)); + printf(" CPU CLK %s MHz BUS CLK %s MHz\n", + strmhz(buf1, gd->cpu_clk)), + strmhz(buf2, gd->bus_clk))); } return 0; |